]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix macro name clash on freebsd (#426)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 29 Jun 2019 16:01:32 +0000 (16:01 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 4 Jul 2019 11:01:16 +0000 (23:01 +1200)
FreeBSD defines FD_NONE in /usr/include/fcntl.h to be magic to
the system. We are not using that name explicitly anywhere, but
it may make sense to keep it around as a default value for
fd_type. Rename the symbol to avoid the clash and fix the build
on FreeBSD.

src/enums.h

index daf626d9825b995eef41b2bd73473ea47b97f6ac..bfcac113a69dce495f8619503b4c17a952b5031e 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_ENUMS_H
 
 enum fd_type {
-    FD_NONE,
+    FD_NONE_TYPE,
     FD_LOG,
     FD_FILE,
     FD_SOCKET,