For FreeBSD and NetBSD, define XATTR_{CREATE,REPLACE}, since there is no
authorDerrik Pates <demon@now.ai>
Sat, 21 May 2011 17:20:53 +0000 (11:20 -0600)
committerDerrik Pates <demon@now.ai>
Sat, 21 May 2011 17:20:53 +0000 (11:20 -0600)
<sys/xattr.h> for us to use to reference the values.

Fuse.xs

diff --git a/Fuse.xs b/Fuse.xs
index 4e1ab7d..f05d50c 100755 (executable)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -3,9 +3,15 @@
 #include "perl.h"
 #include "XSUB.h"
 
-#include <sys/xattr.h>
 #include <fuse.h>
 
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+# define XATTR_CREATE 1
+# define XATTR_REPLACE 2
+#else
+# include <sys/xattr.h>
+#endif
+
 /* Determine if threads support should be included */
 #ifdef USE_ITHREADS
 # ifdef I_PTHREAD