]> git.sur5r.net Git - i3/i3status/commitdiff
Fix use of undefined macro __OpenBSD__
authorOlivier Gayot <olivier.gayot@sigexec.com>
Tue, 19 Jun 2018 17:25:15 +0000 (19:25 +0200)
committerOlivier Gayot <olivier.gayot@sigexec.com>
Wed, 20 Jun 2018 12:20:17 +0000 (14:20 +0200)
Compiling on Linux with -Wundef produces the following warning:

  warning: "__OpenBSD__" is not defined, evaluates to 0 [-Wundef]

Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
src/print_disk_info.c

index fb7348019b33f1de40a83f7a576d7c8c8193f4fb..770e7186840959198efd89b114e7fc809b3bd2cf 100644 (file)
@@ -7,7 +7,7 @@
 #include <sys/stat.h>
 #include <sys/statvfs.h>
 #include <sys/types.h>
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
 #include <sys/param.h>
 #include <sys/mount.h>
 #elif defined(__NetBSD__)