diff --git a/src/common/xcgroup.c b/src/common/xcgroup.c index be87b29888b25fb01d225a51edb6d247f4c49b31..e4f0ecacb27f226cd4c3273d1e6a269ca9c1278d 100644 --- a/src/common/xcgroup.c +++ b/src/common/xcgroup.c @@ -1048,7 +1048,7 @@ int _file_write_content(char* file_path, char* content, size_t csize) /* check read size */ if (rc < csize) { debug2("unable to write %lu bytes to file '%s' : %m", - csize, file_path); + (long unsigned int) csize, file_path); fstatus = XCGROUP_ERROR; } else diff --git a/src/salloc/salloc.c b/src/salloc/salloc.c index 36aa335bd4e722af4c55dfc24b14f1a10ee0d6fa..9222ab27b2d68ffc6cfc641dada8ee219950e4c1 100644 --- a/src/salloc/salloc.c +++ b/src/salloc/salloc.c @@ -85,6 +85,10 @@ extern uint64_t job_getjid(pid_t pid); #endif #endif +#ifndef __USE_XOPEN_EXTENDED +extern pid_t getpgid(pid_t pid); +#endif + #define HASH_RECS 100 #define MAX_RETRIES 10 #define POLL_SLEEP 3 /* retry interval in seconds */