]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed building of libcap2.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Apr 2009 21:37:22 +0000 (23:37 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Apr 2009 21:37:22 +0000 (23:37 +0200)
lfs/libcap2

index 9f005fe28da0dccf610c8142cacfa1049807c235..29d74239cf5ca0a17428e493df49e11c586e4d18 100644 (file)
@@ -80,8 +80,8 @@ $(objects):
 $(OBJECT): $(objects)
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && sed -e "s#sys/types.h#linux/types.h#g" \
-               -i libcap/include/sys/capability.h
+       cd $(DIR_APP) && sed -e "s@<stdlib.h>@&\n#include <asm/types.h>@g" \
+               -i progs/capsh.c
        cd $(DIR_APP) && sed 's/--static//' -i.orig progs/Makefile
        cd $(DIR_APP) && make $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install