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 46ab168..d1cf31d 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 98d801c..e27fd4f 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