Add patch for ppc

This commit is contained in:
Steve Grubb 2009-06-12 17:06:06 +00:00
parent a0c3e94056
commit 03b226c18f
2 changed files with 13 additions and 0 deletions

View File

@ -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 <sys/stat.h>
#include <stdarg.h>
#include <errno.h>
+#include <byteswap.h>
/* External syscall prototypes */
extern int capset(cap_user_header_t header, cap_user_data_t data);

View File

@ -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}