mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-03 09:30:51 +00:00
OS-specific correspondence of the extended attribute header
This commit is contained in:
parent
9f174d7614
commit
9fd1368611
|
@ -29,6 +29,10 @@ AM_INIT_AUTOMAKE([foreign])
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([sys/xattr.h])
|
||||||
|
AC_CHECK_HEADERS([attr/xattr.h])
|
||||||
|
AC_CHECK_HEADERS([sys/extattr.h])
|
||||||
|
|
||||||
CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64"
|
CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64"
|
||||||
|
|
||||||
dnl ----------------------------------------------
|
dnl ----------------------------------------------
|
||||||
|
|
11
src/common.h
11
src/common.h
|
@ -23,6 +23,17 @@
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// Extended attribute
|
||||||
|
//
|
||||||
|
#ifdef HAVE_SYS_EXTATTR_H
|
||||||
|
#include <sys/extattr.h>
|
||||||
|
#elif HAVE_ATTR_XATTR_H
|
||||||
|
#include <attr/xattr.h>
|
||||||
|
#elif HAVE_SYS_XATTR_H
|
||||||
|
#include <sys/xattr.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Macro
|
// Macro
|
||||||
//
|
//
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <sys/xattr.h>
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user