summaryrefslogtreecommitdiffstats
path: root/utils/thread_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/thread_util.c')
-rw-r--r--utils/thread_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/thread_util.c b/utils/thread_util.c
index 5ad5d47..71c8633 100644
--- a/utils/thread_util.c
+++ b/utils/thread_util.c
@@ -960,7 +960,7 @@ void *io_thread_create(struct io_thread *self, void *parent, void *(*start_routi
attr_ptr = &attr;
if(pthread_attr_init(&attr))
return NULL;
-# if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE
+# if (defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE) && !defined __GNU__
/* PTHREAD_STACK_MIN needs the above test. */
assert(stacksize >= PTHREAD_STACK_MIN);
# endif