summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/monitor/monitor.c3
-rw-r--r--src/sss_client/pam_sss.c2
-rw-r--r--src/util/util.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 5559bd9a..d1f2e661 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -19,13 +19,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "util/util.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/param.h>
#include <time.h>
#include <string.h>
-#include "config.h"
#ifdef HAVE_SYS_INOTIFY_H
#include <sys/inotify.h>
#endif
@@ -39,7 +39,6 @@
#include <arpa/nameser.h>
#include <resolv.h>
-#include "util/util.h"
#include "popt.h"
#include "tevent.h"
#include "confdb/confdb.h"
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index d54c0251..81e88139 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -24,6 +24,7 @@
#define PAM_SM_SESSION
#define PAM_SM_PASSWORD
+#include "config.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
@@ -46,7 +47,6 @@
#include <libintl.h>
#define _(STRING) dgettext (PACKAGE, STRING)
-#include "config.h"
#define FLAGS_USE_FIRST_PASS (1 << 0)
#define FLAGS_FORWARD_PASS (1 << 1)
diff --git a/src/util/util.h b/src/util/util.h
index ac6704ae..4b6f3b78 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -21,6 +21,7 @@
#ifndef __SSSD_UTIL_H__
#define __SSSD_UTIL_H__
+#include "config.h"
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
@@ -36,8 +37,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include "config.h"
-
#include <talloc.h>
#include <tevent.h>
#include <ldb.h>