diff options
author | Aaditya Bagga <aaditya_gnulinux@zoho.com> | 2019-09-14 11:34:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-09-14 11:34:35 +0700 |
commit | 7f48ddbfdc26e576b7307e54d7b1841fadda1ebd (patch) | |
tree | bc79c94d2ca21064e53b49032307b31d0c9a9f5f /system/socklog/headers.patch | |
parent | 5875cbbae460af3e169490ccd53ac45cb9908d78 (diff) |
system/socklog: Added (system and kernel logging services).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/socklog/headers.patch')
-rw-r--r-- | system/socklog/headers.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/system/socklog/headers.patch b/system/socklog/headers.patch new file mode 100644 index 0000000000000..6f7ec5ace73b2 --- /dev/null +++ b/system/socklog/headers.patch @@ -0,0 +1,55 @@ +add missing headers for misc funcs and types + +--- a/chkshsgr.c ++++ b/chkshsgr.c +@@ -1,10 +1,11 @@ + /* Public domain. */ + + #include <unistd.h> ++#include <grp.h> + + 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 <unistd.h> + #include "error.h" + #include "stralloc.h" + #include "str.h" +--- a/prot.c ++++ b/prot.c +@@ -1,12 +1,15 @@ + /* Public domain. */ + ++#include <unistd.h> ++#include <grp.h> ++ + #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 <unistd.h> + #include <sys/types.h> + #include "seek.h" + + |