diff --git a/src/slurmd/slurmstepd/pdebug.h b/src/slurmd/slurmstepd/pdebug.h
index 2507430178b903aa1f47ac4383547c0390f4133f..4aac05f4b905cd1704afd8187d24c3dff39f9ac0 100644
--- a/src/slurmd/slurmstepd/pdebug.h
+++ b/src/slurmd/slurmstepd/pdebug.h
@@ -38,6 +38,10 @@
 #ifndef _PDEBUG_H
 #define _PDEBUG_H
 
+#if HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include <unistd.h>
 #ifdef HAVE_SYS_PTRACE_H
 #  include <sys/ptrace.h>