more include cleanups it starts to look almost decent now
[deb_libnfs.git] / examples / nfsclient-sync.c
index 4bd2c0b942714b26d4c72ee8305842ecdec1b5f2..72aa312fe2b6625e034894327bcffbe019fdbb74 100644 (file)
 
 /* Example program using the highlevel sync interface
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef AROS
+#include "aros_compat.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 AROS
-#include "aros_compat.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
 #endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>