blob: 1a2233209462a799f7359e833d77078cc8b608eb [file] [log] [blame]
Andrew Geisslerd1d22e62020-10-16 10:14:32 -05001From 37a0999e5a9f54e1c61a02a7fbab6fcd04738b3c Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster808@gmail.com>
3Date: Thu, 8 Oct 2020 05:54:13 -0700
4Subject: [PATCH] Provide missing defines which otherwise are available on
5 glibc system headers
6
7Signed-off-by: Armin Kuster <akuster808@gmail.com>
8
9Upsteam-Status: Pending
10
11---
12 src/util/util.h | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/src/util/util.h b/src/util/util.h
16index 8a754dbfd..6e55b4bdc 100644
17--- a/src/util/util.h
18+++ b/src/util/util.h
19@@ -76,6 +76,10 @@
20 #define MAX(a, b) (((a) > (b)) ? (a) : (b))
21 #endif
22
23+#ifndef ALLPERMS
24+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
25+#endif
26+
27 #define SSSD_MAIN_OPTS SSSD_DEBUG_OPTS
28
29 #define SSSD_SERVER_OPTS(uid, gid) \
30--
312.17.1
32