Skip to content

Commit

Permalink
thread.c: fix warn about implicit func
Browse files Browse the repository at this point in the history
Signed-off-by: rkhapov <[email protected]>
  • Loading branch information
rkhapov committed Dec 4, 2024
1 parent 3400b79 commit 59a9bd3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions third_party/kiwi/kiwi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* postgreSQL protocol interaction library.
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
Expand Down
4 changes: 3 additions & 1 deletion third_party/machinarium/sources/machinarium_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
* cooperative multitasking engine.
*/

#define _GNU_SOURCE 1
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#ifndef IOV_MAX
#define IOV_MAX __IOV_MAX
Expand Down
5 changes: 5 additions & 0 deletions third_party/machinarium/sources/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* cooperative multitasking engine.
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <pthread.h>

#include <machinarium.h>
#include <machinarium_private.h>

Expand Down

0 comments on commit 59a9bd3

Please sign in to comment.