diff --git a/sockstat/10_fix-CHAR-BIT-missing.patch b/sockstat/10_fix-CHAR-BIT-missing.patch new file mode 100644 index 0000000..09bfeda --- /dev/null +++ b/sockstat/10_fix-CHAR-BIT-missing.patch @@ -0,0 +1,15 @@ +Description: add a necessary header. (Closes: #518851) +Author: peter green +Last-Update: 2009-04-05 +Index: sockstat-0.3/sockstat.c +=================================================================== +--- a/sockstat.c 2009-06-04 11:34:59.051534157 +0800 ++++ b/sockstat.c 2009-06-04 11:35:27.283531833 +0800 +@@ -41,6 +41,7 @@ + #include + #include + #include ++#include + + #define SEARCH_ALL 0x00 + #define SEARCH_GID 0x01 diff --git a/sockstat/20_add-GCC-hardening.patch b/sockstat/20_add-GCC-hardening.patch new file mode 100644 index 0000000..ff684b1 --- /dev/null +++ b/sockstat/20_add-GCC-hardening.patch @@ -0,0 +1,16 @@ +Description: add GCC hardening. +Author: Joao Eriberto Mota Filho +Last-Update: 2016-12-30 +Index: sockstat-0.3/Makefile +=================================================================== +--- a/Makefile ++++ b/Makefile +@@ -2,7 +2,7 @@ SRCS = sockstat.c + OBJS = ${SRCS:.c=.o} + + sockstat: ${OBJS} +- cc -o $@ ${OBJS} ++ cc -o $@ $(LDFLAGS) ${OBJS} + + install: + install -m 755 -c sockstat ${DESTDIR}/usr/bin diff --git a/sockstat/30_add_err-headers.patch b/sockstat/30_add_err-headers.patch new file mode 100644 index 0000000..7710a21 --- /dev/null +++ b/sockstat/30_add_err-headers.patch @@ -0,0 +1,13 @@ +Add missing error headers +by Pekka Helenius, 2018 + +--- a/sockstat.c 2008-06-01 04:52:39.000000000 +0300 ++++ b/sockstat.c 2018-10-02 23:29:16.872336139 +0300 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include