From ab99aa3ed499e95eb1fe94b58fda9f66f118b161 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 12 Sep 2021 08:09:00 +1000 Subject: [PATCH] Fix not compiling on Solaris with 'SI_HW_SERIAL' undefined error --- src/Makefile | 1 + src/Platform_Posix.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index a1e32f37c..f3784f9b8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -36,6 +36,7 @@ endif ifeq ($(PLAT),sunos) CC=gcc +CFLAGS=-g -pipe -fno-math-errno LIBS=-lm -lsocket -lX11 -lXi -lGL endif diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c index 6b09d1e89..400a1a2a2 100644 --- a/src/Platform_Posix.c +++ b/src/Platform_Posix.c @@ -49,6 +49,7 @@ const cc_result ReturnCode_DirectoryExists = EEXIST; #endif #elif defined CC_BUILD_SOLARIS #include +#include #elif defined CC_BUILD_BSD #include #elif defined CC_BUILD_HAIKU