From 16e11b2ae45c22143f96d921d732425b1f80e71d Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Fri, 30 Nov 2012 20:45:48 -0800 Subject: [PATCH 1/4] Added an ia64 ARCH string to savegame.c --- src/savegame/savegame.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/savegame/savegame.c b/src/savegame/savegame.c index ed4d2b2..0c73bdf 100644 --- a/src/savegame/savegame.c +++ b/src/savegame/savegame.c @@ -78,6 +78,8 @@ #define ARCH "i386" #elif defined(__x86_64__) #define ARCH "amd64" +#elif defined(__ia64__) + #define ARCH "ia64" #else #define ARCH "unknown" #endif From fb179f0f16a329c59c566cb6a595a1413a13c887 Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Fri, 30 Nov 2012 20:46:17 -0800 Subject: [PATCH 2/4] Added ia64 to the makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c4ae16..6dfccdd 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ endif # Refuse all other platforms as a firewall against PEBKAC # (You'll need some #ifdef for your unsupported plattform!) -ifeq ($(findstring $(ARCH), i386 x86_64 sparc64),) +ifeq ($(findstring $(ARCH), i386 x86_64 sparc64 ia64),) $(error arch $(ARCH) is currently not supported) endif From b741f8adb14f1083724710319a8250425708ca3e Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Fri, 30 Nov 2012 20:59:07 -0800 Subject: [PATCH 3/4] Added OpenBSD and MacOS X support to savegame.c --- src/savegame/savegame.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/savegame/savegame.c b/src/savegame/savegame.c index 0c73bdf..bcf56a4 100644 --- a/src/savegame/savegame.c +++ b/src/savegame/savegame.c @@ -66,6 +66,10 @@ */ #if defined(__FreeBSD__) #define OS "FreeBSD" +#elif defined(__APPLE__) + #define OS "MacOS X" +#elif defined(__OpenBSD__) + #define OS "OpenBSD" #elif defined(__linux__) #define OS "Linux" #elif defined(_WIN32) From 49288378bf5f16615cabc4276d2df3f7b5708da5 Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Fri, 30 Nov 2012 20:59:47 -0800 Subject: [PATCH 4/4] Added the sparc64 ARCH tag to savegame.c --- src/savegame/savegame.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/savegame/savegame.c b/src/savegame/savegame.c index bcf56a4..62e0bf5 100644 --- a/src/savegame/savegame.c +++ b/src/savegame/savegame.c @@ -82,6 +82,8 @@ #define ARCH "i386" #elif defined(__x86_64__) #define ARCH "amd64" +#elif defined(__sparc__) + #define ARCH "sparc64" #elif defined(__ia64__) #define ARCH "ia64" #else