summaryrefslogtreecommitdiffstats
path: root/lib/env.c
diff options
context:
space:
mode:
authorSami Kerola2011-12-01 23:10:21 +0100
committerKarel Zak2011-12-02 18:21:46 +0100
commitfbc333fec09394bf4e47707de08a65e8c0e9c288 (patch)
treecc581fb320208982e33ddc8e04850b80291109a9 /lib/env.c
parentbuild-sys: add missing headers to dist (diff)
downloadkernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.tar.gz
kernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.tar.xz
kernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.zip
build-sys: check HAVE_ definitions with #ifdef [smatch scan]
Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib/env.c')
-rw-r--r--lib/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/env.c b/lib/env.c
index 770cadff9..e6d119f6f 100644
--- a/lib/env.c
+++ b/lib/env.c
@@ -89,7 +89,7 @@ char *safe_getenv(const char *arg)
if (ruid != 0 || (ruid != geteuid()) || (getgid() != getegid()))
return NULL;
-#if HAVE_PRCTL
+#ifdef HAVE_PRCTL
if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 0)
return NULL;
#else