summaryrefslogtreecommitdiff
path: root/src/util/util.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-05-23 14:58:29 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-05-23 15:32:07 -0400
commit0fc334e130cb3ca30c29c2f5d8c378393ad0d072 (patch)
tree266d12895c7c7ab97cdf7aa1225f23cf01a0dd40 /src/util/util.h
parentf8daa2e724b2964d00160a01786e331a33df5467 (diff)
downloadsssd-0fc334e130cb3ca30c29c2f5d8c378393ad0d072.tar.gz
sssd-0fc334e130cb3ca30c29c2f5d8c378393ad0d072.tar.bz2
sssd-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/util/util.h')
-rw-r--r--src/util/util.h3
1 files changed, 1 insertions, 2 deletions
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>