-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Glib] Add patch to fix missing
xattr.h
on FreeBSD
- Loading branch information
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -2111,16 +2111,15 @@ | ||
if cc.has_function('getxattr') and cc.has_header('sys/xattr.h') | ||
glib_conf.set('HAVE_SYS_XATTR_H', 1) | ||
glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_SYS_XATTR_H') | ||
+ glib_conf.set('HAVE_XATTR', 1) | ||
#failure. try libattr | ||
elif cc.has_header_symbol('attr/xattr.h', 'getxattr') | ||
glib_conf.set('HAVE_ATTR_XATTR_H', 1) | ||
glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_ATTR_XATTR_H') | ||
xattr_dep = [cc.find_library('xattr')] | ||
- else | ||
- error('No getxattr implementation found in C library or libxattr') | ||
+ glib_conf.set('HAVE_XATTR', 1) | ||
endif | ||
|
||
- glib_conf.set('HAVE_XATTR', 1) | ||
if cc.compiles(glib_conf_prefix + ''' | ||
#include <stdio.h> | ||
#ifdef HAVE_SYS_TYPES_H |