Files
bpfire/src/patches/libcap-1.10-syscall.patch

44 lines
1.3 KiB
Diff

--- libcap-1.10.old/libcap/cap_sys.c 2003-08-24 19:03:35.524759616 -0700
+++ libcap-1.10/libcap/cap_sys.c 2003-08-24 19:03:48.406801248 -0700
@@ -10,7 +10,7 @@
#include "libcap.h"
#define __LIBRARY__
#include <linux/unistd.h>
-
+/*
_syscall2(int, capget,
cap_user_header_t, header,
cap_user_data_t, data)
@@ -18,7 +18,7 @@
_syscall2(int, capset,
cap_user_header_t, header,
const cap_user_data_t, data)
-
+*/
/*
* $Log: libcap-1.10-syscall.patch,v $
* Revision 1.1 2004/01/14 13:11:39 riddles
* Build shared libcap
*
* Revision 1.2 2003/08/29 06:28:38 cretin
* Only add -fPIC for libcap.so objects
*
* Revision 1.1 2003/08/27 06:10:53 cretin
* Added -fPIC for prelink to work, and fixed compile error
*
* Revision 1.1.1.1 1999/04/17 22:16:31 morgan
--- libcap-1.10.old/Make.Rules Mon May 21 16:22:08 2001
+++ libcap-1.10/Make.Rules Mon May 21 16:22:32 2001
@@ -44,10 +44,10 @@
CC=gcc
COPTFLAGS=-O2
DEBUG=-g #-DDEBUG
-WARNINGS=-ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \
+WARNINGS=-D_POSIX_SOURCE -Wall -Wwrite-strings \
-Wpointer-arith -Wcast-qual -Wcast-align \
-Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
- -Wnested-externs -Winline -Wshadow -pedantic
+ -Wnested-externs -Winline -Wshadow
LD=ld
LDFLAGS=-s #-g