summaryrefslogtreecommitdiffstats
path: root/mcop/dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mcop/dispatcher.cpp')
-rw-r--r--mcop/dispatcher.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/mcop/dispatcher.cpp b/mcop/dispatcher.cpp
index 580a268..fc3763d 100644
--- a/mcop/dispatcher.cpp
+++ b/mcop/dispatcher.cpp
@@ -20,7 +20,10 @@
*/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "dispatcher.h"
#include "delayedreturn.h"
#include "startupmanager.h"
@@ -43,14 +46,12 @@
#include <errno.h>
#include <iostream>
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#elif HAVE_SYS_TIME_H
-# include <sys/time.h>
-#else
-# include <time.h>
-#endif
+#if defined(HAVE_SYS_TIME_H)
+#include <sys/time.h>
+#endif
+#if defined(TIME_WITH_SYS_TIME)
+#include <time.h>
+#endif
/* Dispatcher private data class (to ensure binary compatibility) */