Merge pull request #29 from doughdemon/master

Make it compile with musl libc
This commit is contained in:
Valient Gough 2014-11-16 20:55:25 -08:00
commit 4608c1704b
3 changed files with 7 additions and 6 deletions

View File

@ -109,10 +109,10 @@ AC_CACHE_CHECK([whether xattr interface takes additional options],
LIBS="$LIBS $ACL_LIBS" LIBS="$LIBS $ACL_LIBS"
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
#if HAVE_ATTR_XATTR_H #if HAVE_SYS_XATTR_H
#include <attr/xattr.h>
#elif HAVE_SYS_XATTR_H
#include <sys/xattr.h> #include <sys/xattr.h>
#elif HAVE_ATTR_XATTR_H
#include <attr/xattr.h>
#endif #endif
],[ ],[
getxattr(0, 0, 0, 0, 0, 0); getxattr(0, 0, 0, 0, 0, 0);

View File

@ -31,10 +31,10 @@
#include <sys/fsuid.h> #include <sys/fsuid.h>
#endif #endif
#ifdef HAVE_ATTR_XATTR_H #if HAVE_SYS_XATTR_H
#include <attr/xattr.h>
#elif HAVE_SYS_XATTR_H
#include <sys/xattr.h> #include <sys/xattr.h>
#elif HAVE_ATTR_XATTR_H
#include <attr/xattr.h>
#endif #endif
#include <functional> #include <functional>

View File

@ -23,6 +23,7 @@
#include <string> #include <string>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <limits.h>
#include <rlog/rlog.h> #include <rlog/rlog.h>
#include <rlog/StdioNode.h> #include <rlog/StdioNode.h>