diff options
Diffstat (limited to 'app-admin/killproc/files')
-rw-r--r-- | app-admin/killproc/files/killproc-2.13-argz.patch | 10 | ||||
-rw-r--r-- | app-admin/killproc/files/killproc-2.13-makefile.patch | 42 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/killproc/files/killproc-2.13-argz.patch b/app-admin/killproc/files/killproc-2.13-argz.patch new file mode 100644 index 000000000000..6ea0cc5f8f2c --- /dev/null +++ b/app-admin/killproc/files/killproc-2.13-argz.patch @@ -0,0 +1,10 @@ +--- a/startproc.c ++++ b/startproc.c +@@ -25,7 +25,6 @@ + #include <sys/time.h> + #include <sys/resource.h> + #include <sys/ioctl.h> +-#include <argz.h> + #include <grp.h> + + #define USAGE "Usage:\n"\ diff --git a/app-admin/killproc/files/killproc-2.13-makefile.patch b/app-admin/killproc/files/killproc-2.13-makefile.patch new file mode 100644 index 000000000000..4eb8131448ee --- /dev/null +++ b/app-admin/killproc/files/killproc-2.13-makefile.patch @@ -0,0 +1,42 @@ +--- a/Makefile ++++ b/Makefile +@@ -27,9 +27,7 @@ + # + # egcs used with -O2 includes -fno-force-mem which is/was buggy (1998/10/08) + # +- CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall -pipe +- CLOOP = -funroll-loops +- CC = gcc ++ CFLAGS = $(RPM_OPT_FLAGS) $(COPTS) $(DEBUG) $(INC) -D_GNU_SOURCE -Wall + RM = rm -f + MKDIR = mkdir -p + RMDIR = rm -rf +@@ -59,22 +57,22 @@ + all: $(SBINPRG) $(UBINPRG) + + libinit.o: libinit.c libinit.h +- $(CC) $(CFLAGS) $(CLOOP) -DINITDIR=\"$(INITDIR)\" -c $< ++ $(CC) $(CFLAGS) -DINITDIR=\"$(INITDIR)\" -c $< + + killproc: killproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + startproc: startproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + checkproc: checkproc.c libinit.o +- $(CC) $(CFLAGS) $(CLOOP) -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + usleep: usleep.c +- $(CC) $(CFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + fsync: fsync.c +- $(CC) $(CFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + clean: + $(RM) *.o *~ killproc startproc checkproc pidofproc start_daemon usleep fsync |