From 1245101a5b513bb35a373e6a0dbac279f410e8a3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 31 Dec 2019 13:41:45 -0800 Subject: [PATCH] ircd: Undef legacy major/minor macros if included through sys/types.h. --- include/ircd/stdinc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ircd/stdinc.h b/include/ircd/stdinc.h index ad74e5567..5e5733708 100644 --- a/include/ircd/stdinc.h +++ b/include/ircd/stdinc.h @@ -105,6 +105,10 @@ extern "C" #undef stdout #undef stderr +// Historical macros from types.h +#undef major +#undef minor + // Trouble. clang++-8 #ifndef assert #define assert(expr) (static_cast(0))