]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
gcc defines things that clash in unexpected ways
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Tue, 3 Nov 2020 16:11:04 +0000 (16:11 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Tue, 3 Nov 2020 16:11:04 +0000 (16:11 +0000)
src/include/build.h

index 776c30aea8bee92ba8ee53152f479a02cc5d332f..291efe3b3951a9e4efcb7d148267d7c5f2c75799 100644 (file)
@@ -58,6 +58,12 @@ extern "C" {
 #endif
 #endif
 
+/*
+ *     GCC will sometimes define "unix" as well as "__unix",
+ *     which gets confusing and is unnecessary.
+ */
+#undef unix
+
 /*
  *     The ubiquitous stringify macros
  */