Description: Disable xattr support on kFreeBSD
 On Debian/kFreeBSD, the xattr syscalls are just stubbed out anyway.
 Disable using them. See #607573 and #619677
Author: Steve McIntyre <93sam@debian.org>
Bug-Debian: http://bugs.debian.org/619677

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gfarm2fs-1.2.2.orig/gfarm2fs.c
+++ gfarm2fs-1.2.2/gfarm2fs.c
@@ -21,6 +21,11 @@
 #include <grp.h>
 #include <stddef.h>
 #include <limits.h>
+/* On Debian/kFreeBSD, the xattr syscalls are just stubbed out anyway.
+   Disable using them. See #607573 and #619677 */
+#ifdef __FreeBSD_kernel__
+#undef HAVE_SYS_XATTR_H
+#endif
 #ifdef HAVE_SYS_XATTR_H
 #include <sys/xattr.h>
 #endif
