diff --git a/src/plugins/slurmctld/nonstop/Makefile.am b/src/plugins/slurmctld/nonstop/Makefile.am
index 93de4eafa11f25b6a24a14e85175ec25896199db..6e3ba1e4d5192312fcf85462900214458c302120 100644
--- a/src/plugins/slurmctld/nonstop/Makefile.am
+++ b/src/plugins/slurmctld/nonstop/Makefile.am
@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = foreign
 
 PLUGIN_FLAGS = -module -avoid-version --export-dynamic
 
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/common
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/common $(MUNGE_CPPFLAGS)
 
 if WITH_MUNGE
 MUNGE = slurmctld_nonstop.la
diff --git a/src/plugins/slurmctld/nonstop/Makefile.in b/src/plugins/slurmctld/nonstop/Makefile.in
index 748d849ac2ca76ffbcb73d36c77f32e2367d0e23..19644842248717a2307d320abc34d6a016eb99b7 100644
--- a/src/plugins/slurmctld/nonstop/Makefile.in
+++ b/src/plugins/slurmctld/nonstop/Makefile.in
@@ -473,7 +473,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = foreign
 PLUGIN_FLAGS = -module -avoid-version --export-dynamic
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/common
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/common $(MUNGE_CPPFLAGS)
 @WITH_MUNGE_TRUE@MUNGE = slurmctld_nonstop.la
 pkglib_LTLIBRARIES = $(MUNGE)