Commit cca9cce8 cca9cce8ade09d728dea8a59084b2b06b40ada6a by Sam Roberts

The pthread headers seem to define things that make the system headers

not prototype some non-POSIX but essential APIS, so I moved them (on QNX6).
1 parent 73ac79ed
......@@ -21,12 +21,6 @@
# include <config.h>
#endif
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
# define _XOPEN_SOURCE 500
# include <pthread.h>
# endif
#endif
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
......@@ -40,6 +34,13 @@
#include <limits.h>
#include <errno.h>
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
# define _XOPEN_SOURCE 500
# include <pthread.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#endif
......
......@@ -21,13 +21,6 @@
# include <config.h>
#endif
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
# define _XOPEN_SOURCE 500
# include <pthread.h>
# endif
#endif
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
......@@ -39,6 +32,13 @@
#include <dirent.h>
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
# define _XOPEN_SOURCE 500
# include <pthread.h>
# endif
#endif
#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
......