Protect definition of _XOPEN_SOURCE by an extra ifdef
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -41,7 +41,9 @@ | ... | @@ -41,7 +41,9 @@ |
41 | 41 | ||
42 | #ifdef WITH_PTHREAD | 42 | #ifdef WITH_PTHREAD |
43 | # ifdef HAVE_PTHREAD_H | 43 | # ifdef HAVE_PTHREAD_H |
44 | # define _XOPEN_SOURCE 500 | 44 | # ifdef _XOPEN_SOURCE |
45 | # define _XOPEN_SOURCE 500 | ||
46 | # endif | ||
45 | # include <pthread.h> | 47 | # include <pthread.h> |
46 | # endif | 48 | # endif |
47 | #endif | 49 | #endif | ... | ... |
-
Please register or sign in to post a comment