summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.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 /libblkid/src/read.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 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c
index c404bb010..b9fda3aae 100644
--- a/libblkid/src/read.c
+++ b/libblkid/src/read.c
@@ -19,13 +19,13 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include "blkidP.h"
-#if HAVE_STDLIB_H
+#ifdef HAVE_STDLIB_H
# ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600 /* for inclusion of strtoull */
# endif