aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dar/configure-sys-xattr.patch
blob: e1cafa98137c3494957273e55d75aeee490453b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ./configure.ac
+++ ./configure.ac
@@ -648,7 +648,7 @@
                 [ AC_MSG_CHECKING([for Extended Attribute support])
                   AC_MSG_RESULT([disabled])
                 ],
-                [ AC_CHECK_HEADERS([attr/xattr.h])
+                [ AC_CHECK_HEADERS([attr/xattr.h sys/xattr.h])
                   AC_CHECK_LIB(attr, [lgetxattr], [], [])
                   AC_MSG_CHECKING([for Unix Extended Attribute support])
                   AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern "C" {
@@ -658,6 +658,9 @@
                                                      #if HAVE_ATTR_XATTR_H
                                                      #include <attr/xattr.h>
                                                      #endif
+                                                     #if HAVE_SYS_XATTR_H
+                                                     #include <sys/xattr.h>
+                                                     #endif
                                                     }]],
                                                     [ lgetxattr((char *)0, (char *)0, (void *)0, 0); ])
                                  ],