From: Olivier Gayot Date: Tue, 19 Jun 2018 17:25:15 +0000 (+0200) Subject: Fix use of undefined macro __OpenBSD__ X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95c068358acb303ab01ab8dc372f893aec5fe1b0;p=i3%2Fi3status Fix use of undefined macro __OpenBSD__ Compiling on Linux with -Wundef produces the following warning: warning: "__OpenBSD__" is not defined, evaluates to 0 [-Wundef] Signed-off-by: Olivier Gayot --- diff --git a/src/print_disk_info.c b/src/print_disk_info.c index fb73480..770e718 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -7,7 +7,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) #include #include #elif defined(__NetBSD__)