]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: lib - Add value for defines that don't have it
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 22 Feb 2023 12:08:20 +0000 (14:08 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 23 Feb 2023 12:16:12 +0000 (14:16 +0200)
Fixes compilation with FreeBSD that requires a value for
defines.

Broken in e6f2682b32ff5b366ee7242841c3194425202880

src/lib/lib.h

index 38345ac0ec9a353eaf013e1d1a7d62b437a0fc11..636e1b0f9a7f6a161d2762eb4bdbcac631f6834d 100644 (file)
@@ -2,9 +2,9 @@
 #define LIB_H
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-#  define __BSD_VISIBLE
+#  define __BSD_VISIBLE 1
 #elif defined(__APPLE__)
-#  define _DARWIN_C_SOURCE
+#  define _DARWIN_C_SOURCE 1
 #endif
 #define _BSD_SOURCE 1
 #define _DEFAULT_SOURCE 1