summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/compat.h
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2016-04-18 19:24:41 +0200
committerNiels de Vos <ndevos@redhat.com>2016-04-25 01:18:42 -0700
commit30b66ef3750ece0fb56e673afaca7948d53511e1 (patch)
tree681a7d211d597223c0051251429a3330e84edd14 /libglusterfs/src/compat.h
parent68034a3f92a779f8fe67525472f450d473769dd3 (diff)
build: reduce warnings when building the syscall compatibility layer
For whatever reason my Fedora 23 started to complain loudly when compiling syscall.c. Change-Id: I72d278d6dc9abb77018c2590c113552383b639d1 BUG: 1198849 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/14034 Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'libglusterfs/src/compat.h')
-rw-r--r--libglusterfs/src/compat.h5
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);