From 575924d36f944f8e504fcc069a9c6006a77e2511 Mon Sep 17 00:00:00 2001
From: Armin Kuster <akuster808@gmail.com>
Date: Thu, 8 Oct 2020 05:54:13 -0700
Subject: [PATCH] Provide missing defines which otherwise are available on
 glibc system headers

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 src/util/util.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/util/util.h b/src/util/util.h
index c87d11e9d1..a49c410073 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -75,6 +75,10 @@
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
 #endif
 
+#ifndef ALLPERMS
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+#endif
+
 #define SSSD_MAIN_OPTS SSSD_DEBUG_OPTS
 
 #define SSSD_SERVER_OPTS(uid, gid) \
