Browse Source

Merge pull request #304 from trapexit/freebsd

fix some build issues with Debian/kFreeBSD
pull/305/head
Antonio SJ Musumeci 8 years ago
committed by GitHub
parent
commit
a0885e33dc
  1. 1
      src/fs_sendfile_unsupported.icpp
  2. 10
      src/xattr.hpp

1
src/fs_sendfile_unsupported.icpp

@ -15,6 +15,7 @@
*/ */
#include <errno.h> #include <errno.h>
#include <sys/types.h>
namespace fs namespace fs
{ {

10
src/xattr.hpp

@ -18,10 +18,18 @@
#include <attr/xattr.h> #include <attr/xattr.h>
#endif #endif
#ifndef ENOATTR
#if defined(ENODATA) && !defined(ENOATTR)
#define ENOATTR ENODATA #define ENOATTR ENODATA
#endif #endif
#if defined(ENOATTR) && !defined(ENODATA)
#define ENODATA ENOATTR
#endif
#if !defined(ENOATTR) && !defined(ENODATA)
#error "Neither ENOATTR or ENODATA defined: please contact mergerfs author with platform information"
#endif
#ifndef XATTR_CREATE #ifndef XATTR_CREATE
#define XATTR_CREATE 0x1 #define XATTR_CREATE 0x1
#endif #endif

Loading…
Cancel
Save