diff --git a/src/plugins/jobcomp/jobcomp_filetxt.c b/src/plugins/jobcomp/jobcomp_filetxt.c index 23a2814c67e3668dc633f7993781bba7f3bed770..3afaeb7a0494de5c5f30d086b43ca7680debcf84 100644 --- a/src/plugins/jobcomp/jobcomp_filetxt.c +++ b/src/plugins/jobcomp/jobcomp_filetxt.c @@ -28,13 +28,19 @@ # include "config.h" #endif +#if HAVE_STDINT_H +# include <stdint.h> +#endif +#if HAVE_INTTYPES_H +# include <inttypes.h> +#endif + #include <fcntl.h> #include <pthread.h> #include <pwd.h> #include <slurm/slurm.h> #include <slurm/slurm_errno.h> #include <string.h> -#include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> diff --git a/src/plugins/jobcomp/jobcomp_none.c b/src/plugins/jobcomp/jobcomp_none.c index 8c5c6353c992caf4ab4a098652c01fe8dba101d0..777a0e917ca090a46dee9ce92be7d26e4d6996d2 100644 --- a/src/plugins/jobcomp/jobcomp_none.c +++ b/src/plugins/jobcomp/jobcomp_none.c @@ -24,7 +24,17 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. \*****************************************************************************/ -#include <stdint.h> +#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 <slurm/slurm_errno.h>