summaryrefslogtreecommitdiff
path: root/src/monitor
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/monitor
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/monitor')
-rw-r--r--src/monitor/monitor.c3
1 files changed, 1 insertions, 2 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"