fixed build on FreeBSD

This commit is contained in:
Andrew Tridgell 2005-07-25 09:05:46 +02:00
parent 9068bd58f7
commit a5ab55ad60
3 changed files with 4 additions and 4 deletions

View File

@ -6,11 +6,10 @@
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <sys/file.h>
#include <fcntl.h>
#include <time.h>
#include <string.h>
@ -19,6 +18,7 @@
#include <stdarg.h>
#include <dirent.h>
#include <limits.h>
#include <sys/file.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif

View File

@ -107,5 +107,5 @@
/* Define on UNIX to activate XPG/5 features. */
#if !defined(_XOPEN_SOURCE)
# define _XOPEN_SOURCE 500
# define _XOPEN_SOURCE
#endif

View File

@ -20,7 +20,7 @@ AC_DEFINE([_GNU_SOURCE], 1,
AH_VERBATIM([_XOPEN_SOURCE],
[/* Define on UNIX to activate XPG/5 features. */
#if !defined(_XOPEN_SOURCE)
# define _XOPEN_SOURCE 500
# define _XOPEN_SOURCE
#endif])
# If GCC, turn on warnings.