]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
new header tests for sunos
authorAndrew Tridgell <tridge@samba.org>
Sun, 30 Jun 1996 04:42:04 +0000 (04:42 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 30 Jun 1996 04:42:04 +0000 (04:42 +0000)
configure.in
rsync.h

index 46ab1683de0a53ea080cb67b340bf4f9ac281242..d1cf31d62a92a602cec40ab2c49dfe366caf2464 100644 (file)
@@ -8,12 +8,11 @@ AC_PROG_INSTALL
 AC_SUBST(SHELL)
 
 AC_HEADER_DIRENT
-AC_HEADER_STDC
 AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(sys/fcntl.h fcntl.h sys/time.h unistd.h utime.h grp.h)
 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
-AC_CHECK_HEADERS(sys/filio.h)
+AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h)
 
 AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
diff --git a/rsync.h b/rsync.h
index 98d801c91d875b835e9e5dd1b0a61ef051147821..e27fd4fadac2af75a0ec89a2c9b6795a876d109a 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #include <sys/param.h>
 #endif
 
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
 #endif
 
 #ifdef HAVE_COMPAT_H