diff options
Diffstat (limited to 'libglusterfs/src/compat.h')
-rw-r--r-- | libglusterfs/src/compat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index 81e74f41075..69adfbcd7fe 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -437,7 +437,6 @@ char *dirname_r(char *path); #endif /* THREAD_UNSAFE_DIRNAME */ int gf_mkostemp (char *tmpl, int suffixlen, int flags); -#define mkostemp(tmpl, flags) gf_mkostemp(tmpl, 0, flags); #ifdef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC /* Linux, Solaris, Cygwin */ @@ -482,7 +481,9 @@ int gf_mkostemp (char *tmpl, int suffixlen, int flags); #if defined(__GNUC__) && !defined(RELAX_POISONING) /* Use run API, see run.h */ -#pragma GCC poison system popen +#include <stdlib.h> /* system(), mkostemp() */ +#include <stdio.h> /* popen() */ +#pragma GCC poison system mkostemp popen #endif int gf_umount_lazy(char *xlname, char *path, int rmdir); |