From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../socklog/files/socklog-2.1.0-headers.patch | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 app-admin/socklog/files/socklog-2.1.0-headers.patch (limited to 'app-admin/socklog/files/socklog-2.1.0-headers.patch') diff --git a/app-admin/socklog/files/socklog-2.1.0-headers.patch b/app-admin/socklog/files/socklog-2.1.0-headers.patch new file mode 100644 index 000000000000..b7c10e3da606 --- /dev/null +++ b/app-admin/socklog/files/socklog-2.1.0-headers.patch @@ -0,0 +1,54 @@ +add missing headers for misc funcs and types + +--- a/chkshsgr.c ++++ b/chkshsgr.c +@@ -1,10 +1,11 @@ + /* Public domain. */ + + #include ++#include + + int main() + { +- short x[4]; ++ gid_t x[4]; + + x[0] = x[1] = 0; + if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); +--- a/pathexec_run.c ++++ b/pathexec_run.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include + #include "error.h" + #include "stralloc.h" + #include "str.h" +--- a/prot.c ++++ b/prot.c +@@ -1,12 +1,15 @@ + /* Public domain. */ + ++#include ++#include ++ + #include "hasshsgr.h" + #include "prot.h" + + int prot_gid(int gid) + { + #ifdef HASSHORTSETGROUPS +- short x[2]; ++ gid_t x[2]; + x[0] = gid; x[1] = 73; /* catch errors */ + if (setgroups(1,x) == -1) return -1; + #else +--- a/seek_set.c ++++ b/seek_set.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include + #include + #include "seek.h" + -- cgit v1.2.3