Skip to content

Commit

Permalink
Cygwin: Use the right headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vasi committed Apr 17, 2012
1 parent 9e5399e commit cb9e404
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions squashfs-tools/oscompat.h
Expand Up @@ -29,6 +29,7 @@
#endif #endif


#ifdef XATTR_SUPPORT #ifdef XATTR_SUPPORT
#include <sys/types.h>
#include <sys/xattr.h> #include <sys/xattr.h>
#ifdef XATTR_NOFOLLOW // Apple's weird xattrs #ifdef XATTR_NOFOLLOW // Apple's weird xattrs
#define llistxattr(path_, buf_, sz_) \ #define llistxattr(path_, buf_, sz_) \
Expand All @@ -40,7 +41,7 @@
#endif #endif
#endif #endif


#ifdef linux #if defined(linux) || defined(__CYGWIN__)
#include <endian.h> #include <endian.h>
#elif defined(__HAIKU__) #elif defined(__HAIKU__)
#include <posix/endian.h> #include <posix/endian.h>
Expand All @@ -67,7 +68,7 @@
#endif #endif
#endif #endif


#if defined(linux) || defined(__sun__) #if defined(linux) || defined(__sun__) || defined(__CYGWIN__)
#define USE_SYSCONF 1 #define USE_SYSCONF 1
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#elif !defined(__QNX__) && !defined(__minix) && !defined(__HAIKU__) #elif !defined(__QNX__) && !defined(__minix) && !defined(__HAIKU__)
Expand Down

0 comments on commit cb9e404

Please sign in to comment.