include unix.h if it's available
authorMatt Kraai <mkraai@beckman.com>
Thu, 9 Jul 2009 16:45:28 +0000 (09:45 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 19 Jul 2009 13:59:03 +0000 (15:59 +0200)
lib/replace/libreplace.m4
lib/replace/replace.h

index 2d90d9c7e859cce0294182eb21c6b549188c953e..a3a26ef43e48280ef4075b147649632bf7891e41 100644 (file)
@@ -103,6 +103,7 @@ AC_CHECK_HEADERS(sys/time.h time.h)
 AC_CHECK_HEADERS(stdarg.h vararg.h)
 AC_CHECK_HEADERS(sys/mount.h mntent.h)
 AC_CHECK_HEADERS(stropts.h)
+AC_CHECK_HEADERS(unix.h)
 
 AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror)
 AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename)
index fe1f732acb275434ffdbab15ae48d768ecda15f5..2db6aa1226cbe796666371151dc89d7656bac78e 100644 (file)
@@ -258,6 +258,10 @@ char *rep_realpath(const char *path, char *resolved_path);
 int rep_lchown(const char *fname,uid_t uid,gid_t gid);
 #endif
 
+#ifdef HAVE_UNIX_H
+#include <unix.h>
+#endif
+
 #ifndef HAVE_SETLINEBUF
 #define setlinebuf rep_setlinebuf
 void rep_setlinebuf(FILE *);