From: Matthew Newton Date: Tue, 3 Nov 2020 16:11:04 +0000 (+0000) Subject: gcc defines things that clash in unexpected ways X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135c6600528297daedc4cfe0fbfe2f72bbeddeef;p=thirdparty%2Ffreeradius-server.git gcc defines things that clash in unexpected ways --- diff --git a/src/include/build.h b/src/include/build.h index 776c30aea8b..291efe3b395 100644 --- a/src/include/build.h +++ b/src/include/build.h @@ -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 */