diff --git a/libcap-ng-0.4.2-bswap.patch b/libcap-ng-0.4.2-bswap.patch new file mode 100644 index 0000000..c247861 --- /dev/null +++ b/libcap-ng-0.4.2-bswap.patch @@ -0,0 +1,11 @@ +diff -urp libcap-ng-0.4.2.orig/src/cap-ng.c libcap-ng-0.4.2/src/cap-ng.c +--- libcap-ng-0.4.2.orig/src/cap-ng.c 2009-06-12 10:56:45.000000000 -0400 ++++ libcap-ng-0.4.2/src/cap-ng.c 2009-06-12 11:56:57.000000000 -0400 +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + /* External syscall prototypes */ + extern int capset(cap_user_header_t header, cap_user_data_t data); diff --git a/libcap-ng.spec b/libcap-ng.spec index 8174811..d1e9219 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -6,6 +6,7 @@ License: LGPLv2+ Group: System Environment/Libraries URL: http://people.redhat.com/sgrubb/libcap-ng Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz +Patch1: libcap-ng-0.4.2-bswap.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: kernel-headers >= 2.6.11 BuildRequires: libattr-devel @@ -36,6 +37,7 @@ lets you set the file system based capabilities. %prep %setup -q +%patch1 -p1 %build %configure --libdir=/%{_lib}