diff --git a/src/common/xmalloc.h b/src/common/xmalloc.h
index 282e6eb09097bac080f7989eccf453e17f11afa8..a4c96bd127e9cc789ff7be9dc9464fefdefa64ed 100644
--- a/src/common/xmalloc.h
+++ b/src/common/xmalloc.h
@@ -68,10 +68,9 @@
 #ifndef _XMALLOC_H
 #define _XMALLOC_H
 
+#include <stdbool.h>
 #include <sys/types.h>
 
-#include "macros.h"
-
 #define xmalloc(__sz) \
 	slurm_xmalloc (__sz, true, __FILE__, __LINE__, __func__)