repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a bug when returning the filehandle in creat() and return the filehandle
[deb_libnfs.git]
/
lib
/
libnfs-sync.c
diff --git
a/lib/libnfs-sync.c
b/lib/libnfs-sync.c
index f2c9ebf481387dd8cdd2c39dde00347f58dae8c2..4478a498bfc1804bbdaba7b0406d6069b5c1d57b 100644
(file)
--- a/
lib/libnfs-sync.c
+++ b/
lib/libnfs-sync.c
@@
-21,6
+21,10
@@
#include "config.h"
#endif
#include "config.h"
#endif
+#ifdef AROS
+#include "aros_compat.h"
+#endif
+
#ifdef WIN32
#include "win32_compat.h"
#else
#ifdef WIN32
#include "win32_compat.h"
#else
@@
-28,19
+32,19
@@
#include <netdb.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netdb.h>
#include <sys/socket.h>
#include <net/if.h>
+#endif /*WIN32*/
-#ifdef AROS
-#include "aros_compat.h"
-#else
#ifdef ANDROID
#ifdef ANDROID
-#include <netinet/in.h>
-#include <sys/vfs.h>
#define statvfs statfs
#define statvfs statfs
-#else
+#endif
+
+#ifdef HAVE_SYS_VFS_H
+#include <sys/vfs.h>
+#endif
+
+#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#include <sys/statvfs.h>
-#endif /*ANDRIOD*/
-#endif /*AROS*/
-#endif /*WIN32*/
+#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
@@
-61,6
+65,7
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <netinet/in.h>
#include <errno.h>
#ifdef HAVE_SYS_SOCKIO_H
#include <errno.h>
#ifdef HAVE_SYS_SOCKIO_H