From e70310c67b4f8897cb8f112e181563b8a14ee099 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 11 May 2023 23:26:08 -0400 Subject: [PATCH] In file included from ../win/X11/winX.c:42: In file included from /opt/X11/include/X11/Xos.h:146: /opt/X11/include/X11/Xarch.h:44:13: fatal error: 'sys/byteorder.h' file not found ^~~~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [winX.o] Error 1 Xarch.h has an #ifdef SVR4 block. --- include/global.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/global.h b/include/global.h index c734ccaf7..5b15963d7 100644 --- a/include/global.h +++ b/include/global.h @@ -199,6 +199,7 @@ typedef uchar nhsym; #define PORT_ID "Mac" #endif #ifdef __APPLE__ +#undef SVR4 /* avoid a conflict in X11 header file */ #define PORT_ID "MacOS" #endif #ifdef MSDOS