1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 22:15:17 +03:00
aports/testing/sssd/0002-src.patch
2021-12-05 10:57:56 +00:00

35 lines
893 B
Diff

diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index af3563e65..2d98829ad 100644
--- a/src/confdb/confdb.h
+++ b/src/confdb/confdb.h
@@ -22,6 +22,7 @@
#ifndef _CONF_DB_H
#define _CONF_DB_H
+#include <sys/types.h>
#include <stdbool.h>
#include <talloc.h>
#include <tevent.h>
diff --git a/src/util/util.h b/src/util/util.h
index 6dfd2540c..e54ca5bd5 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -30,6 +30,7 @@
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/param.h>
#include <netinet/in.h>
#include <talloc.h>
@@ -46,6 +47,10 @@
#include "util/sss_regexp.h"
#include "util/debug.h"
+#ifndef ALLPERMS
+#define ALLPERMS (S_ISUID | S_ISGID | S_IRGRP | S_IRWXU | S_IRWXG | S_IRWXO)
+#endif
+
/* name of the monitor server instance */
#define SSSD_MONITOR_NAME "sssd"
#define SSSD_PIDFILE PID_PATH"/"SSSD_MONITOR_NAME".pid"