diff --git a/src/plugins/sched/prefix_courier.cpp b/src/plugins/sched/prefix_courier.cpp
index 90443c91bb98edfb9482d3b391e1897586835ffb..b67d31936a6ff5bad98ce4c831adb949bd92fd6c 100644
--- a/src/plugins/sched/prefix_courier.cpp
+++ b/src/plugins/sched/prefix_courier.cpp
@@ -24,9 +24,19 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 \*****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#if HAVE_STDINT_H
+#  include <stdint.h>
+#endif
+#if HAVE_INTTYPES_H
+#  include <inttypes.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
-#include <stdint.h>
 
 extern "C" {
 # include "src/common/log.h"