diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-05-23 14:58:29 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-05-23 15:32:07 -0400 |
commit | 0fc334e130cb3ca30c29c2f5d8c378393ad0d072 (patch) | |
tree | 266d12895c7c7ab97cdf7aa1225f23cf01a0dd40 /src | |
parent | f8daa2e724b2964d00160a01786e331a33df5467 (diff) | |
download | sssd2-0fc334e130cb3ca30c29c2f5d8c378393ad0d072.tar.gz sssd2-0fc334e130cb3ca30c29c2f5d8c378393ad0d072.tar.xz sssd2-0fc334e130cb3ca30c29c2f5d8c378393ad0d072.zip |
Import config.h earlier
On RHEL 5 and other older platforms, failing to set _GNU_SOURCE
early would cause some functions - such as strndup() - to be
unavailable.
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor/monitor.c | 3 | ||||
-rw-r--r-- | src/sss_client/pam_sss.c | 2 | ||||
-rw-r--r-- | src/util/util.h | 3 |
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> |