diff options
author | Buildbot system user <buildbot@medusa> | 2017-01-09 23:27:35 +0000 |
---|---|---|
committer | Buildbot system user <buildbot@medusa> | 2017-01-09 23:27:35 +0000 |
commit | 3fa8ba4bd1e5f3c0bf51556e58b06c66cde4e92a (patch) | |
tree | 438a2dd22e72204b1b85479af1f954fdb62eff65 | |
parent | c6530b946ee1e4874623589ee21380c71049b65a (diff) |
Update app-xdm patch
-rw-r--r-- | patches/app-xdm/0001-Workaround-Cygwin-s-failure-to-prototype-initgroups.patch | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/patches/app-xdm/0001-Workaround-Cygwin-s-failure-to-prototype-initgroups.patch b/patches/app-xdm/0001-Workaround-Cygwin-s-failure-to-prototype-initgroups.patch index f65dec3..60c422d 100644 --- a/patches/app-xdm/0001-Workaround-Cygwin-s-failure-to-prototype-initgroups.patch +++ b/patches/app-xdm/0001-Workaround-Cygwin-s-failure-to-prototype-initgroups.patch @@ -1,28 +1,26 @@ -From e80717aee0907456a389a7c3e74d083b7ff20ac9 Mon Sep 17 00:00:00 2001 +From 291b424013d556c509d129d83112b3a70368bb89 Mon Sep 17 00:00:00 2001 From: Jon TURNEY <jon.turney@dronecode.org.uk> Date: Fri, 28 Aug 2015 19:04:14 +0100 Subject: [PATCH app/xdm] Workaround Cygwin's failure to prototype initgroups() -Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> --- - xdm/session.c | 4 ++++ - 1 file changed, 4 insertions(+) + xdm/session.c | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/xdm/session.c b/xdm/session.c -index eff9c74..8d316b8 100644 +index 4f71d71..72f537f 100644 --- a/xdm/session.c +++ b/xdm/session.c -@@ -50,6 +50,10 @@ from The Open Group. - #include <stdio.h> +@@ -51,6 +51,9 @@ from The Open Group. #include <ctype.h> #include <grp.h> /* for initgroups */ -+ + +/* newlib only defines initgroups if !_POSIX_SOURCE and !_XOPEN_SOURCE, which seems a little odd */ +int initgroups (const char *, gid_t); + - #ifdef AIXV3 - # include <usersec.h> - #endif + #ifndef USE_PAM /* PAM modules should handle these */ + # ifdef SECURE_RPC + # include <rpc/rpc.h> -- -2.5.1 +2.8.3 |