summaryrefslogtreecommitdiffstats
path: root/libblkid/src/devname.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/devname.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/devname.c')
-rw-r--r--libblkid/src/devname.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c
index 42a8c19a9..12cd93ad3 100644
--- a/libblkid/src/devname.c
+++ b/libblkid/src/devname.c
@@ -16,20 +16,20 @@
#include <stdio.h>
#include <string.h>
#include <limits.h>
-#if HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <ctype.h>
#include <fcntl.h>
-#if HAVE_SYS_TYPES_H
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <dirent.h>
-#if HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <time.h>