diff options
author | Sami Kerola | 2011-12-01 23:10:21 +0100 |
---|---|---|
committer | Karel Zak | 2011-12-02 18:21:46 +0100 |
commit | fbc333fec09394bf4e47707de08a65e8c0e9c288 (patch) | |
tree | cc581fb320208982e33ddc8e04850b80291109a9 /lib | |
parent | build-sys: add missing headers to dist (diff) | |
download | kernel-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')
-rw-r--r-- | lib/env.c | 2 | ||||
-rw-r--r-- | lib/ismounted.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 diff --git a/lib/ismounted.c b/lib/ismounted.c index f19d67b1e..273a7d951 100644 --- a/lib/ismounted.c +++ b/lib/ismounted.c @@ -11,7 +11,7 @@ #include <stdlib.h> #include <errno.h> #include <fcntl.h> -#if HAVE_MNTENT_H +#ifdef HAVE_MNTENT_H #include <mntent.h> #endif #include <string.h> |