more header include cleanups
[deb_libnfs.git] / examples / nfsclient-sync.c
index 4bd2c0b942714b26d4c72ee8305842ecdec1b5f2..70bd77a1757c18dca5cd536871afc7a8380f1bf5 100644 (file)
 
 /* Example program using the highlevel sync interface
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #ifdef WIN32
 #include "win32_compat.h"
 #pragma comment(lib, "ws2_32.lib")
 WSADATA wsaData;
 #else
 #include <string.h>
-#include <fcntl.h>
 #include <sys/stat.h>
-#include <unistd.h>
 #ifndef AROS
 #include <sys/statvfs.h>
 #endif
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifdef AROS
 #include "aros_compat.h"
 #endif