diff --git a/src/api/slurm.h b/src/api/slurm.h
index 267324411bece271d96d6b8c8020c8730b50aad1..84e330ee1278049482772bfe0a37c8dd214f62e0 100644
--- a/src/api/slurm.h
+++ b/src/api/slurm.h
@@ -28,6 +28,28 @@
 #ifndef _SLURM_H
 #define _SLURM_H
 
+/* FIXME: REMOVE ASAP */
+#if HAVE_CONFIG_H
+#  include <config.h>
+#  if HAVE_INTTYPES_H
+#    include <inttypes.h>
+#  else
+#    if HAVE_STDINT_H
+#      include <stdint.h>
+#    endif
+#  endif			/* HAVE_INTTYPES_H */
+#  ifdef HAVE_LIBELAN3
+#    include <src/common/qsw.h>
+#  endif
+#else				/* !HAVE_CONFIG_H */
+#  include <inttypes.h>
+#endif				/*  HAVE_CONFIG_H */
+
+#include <src/common/macros.h>
+#include <src/common/xassert.h>
+#include <src/common/slurm_protocol_common.h>
+
+
 #include <stdio.h>			/* for FILE definitions */
 #include <time.h>			/* for time_t definitions */