From 32cdffc66120e843f9768b765d98b513ce77d6a7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 22 Dec 2023 13:28:28 +0100 Subject: [PATCH] unix: don't redefine constants already defined in glibc headers These are all present in glibc 2.37 which is currently used to generate these constants. Change-Id: I3ffbd8f8581e85e8854222ad3f2c7f44aac106c7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/552417 Reviewed-by: David Chase Auto-Submit: Tobias Klauser Reviewed-by: Matt Layher LUCI-TryBot-Result: Go LUCI Reviewed-by: Than McIntosh --- unix/mkerrors.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/unix/mkerrors.sh b/unix/mkerrors.sh index 12f6d2dc0..c6492020e 100755 --- a/unix/mkerrors.sh +++ b/unix/mkerrors.sh @@ -284,10 +284,6 @@ struct ltchars { #include #endif -#ifndef MSG_FASTOPEN -#define MSG_FASTOPEN 0x20000000 -#endif - #ifndef PTRACE_GETREGS #define PTRACE_GETREGS 0xc #endif @@ -296,14 +292,6 @@ struct ltchars { #define PTRACE_SETREGS 0xd #endif -#ifndef SOL_NETLINK -#define SOL_NETLINK 270 -#endif - -#ifndef SOL_SMC -#define SOL_SMC 286 -#endif - #ifdef SOL_BLUETOOTH // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h // but it is already in bluetooth_linux.go @@ -320,11 +308,6 @@ struct ltchars { #undef TIPC_WAIT_FOREVER #define TIPC_WAIT_FOREVER 0xffffffff -// Copied from linux/l2tp.h -// Including linux/l2tp.h here causes conflicts between linux/in.h -// and netinet/in.h included via net/route.h above. -#define IPPROTO_L2TP 115 - // Copied from linux/netfilter/nf_nat.h // Including linux/netfilter/nf_nat.h here causes conflicts between linux/in.h // and netinet/in.h.