(svn r2314) - Feature: [ 1187490 ] Patches for building on IRIX (jgilje)

This commit is contained in:
Darkvater 2005-05-14 22:42:33 +00:00
parent ea20ca8fc2
commit ed5cf7b28f
3 changed files with 7 additions and 1 deletions

View File

@ -332,11 +332,13 @@ ifndef DEBUG
ifndef PROFILE ifndef PROFILE
# Release mode # Release mode
ifndef MORPHOS ifndef MORPHOS
ifndef IRIX
# automatical strip breaks under morphos # automatical strip breaks under morphos
BASECFLAGS += -s BASECFLAGS += -s
LDFLAGS += -s LDFLAGS += -s
endif endif
endif endif
endif
ifdef OSX ifdef OSX
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer # these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
@ -349,10 +351,12 @@ else
BASECFLAGS += -O2 BASECFLAGS += -O2
endif endif
ifndef PROFILE ifndef PROFILE
ifndef IRIX
BASECFLAGS += -fomit-frame-pointer BASECFLAGS += -fomit-frame-pointer
endif endif
endif endif
endif endif
endif
ifdef STATIC ifdef STATIC
ifndef OSX # OSX can't build static if -static flag is used ifndef OSX # OSX can't build static if -static flag is used

View File

@ -57,7 +57,7 @@ typedef struct ifreq IFREQ;
# include <arpa/inet.h> # include <arpa/inet.h>
# include <net/if.h> # include <net/if.h>
// According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
# if !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \ # if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \
&& !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__)
// If for any reason ifaddrs.h does not exist on your system, comment out // If for any reason ifaddrs.h does not exist on your system, comment out
// the following two lines and an alternative way will be used to fetch // the following two lines and an alternative way will be used to fetch

2
sdl.c
View File

@ -421,6 +421,8 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
#elif defined(__SVR4) && defined(__sun) #elif defined(__SVR4) && defined(__sun)
if (sym->scancode == 60) key |= WKC_BACKQUOTE; if (sym->scancode == 60) key |= WKC_BACKQUOTE;
if (sym->scancode == 49) key |= WKC_BACKSPACE; if (sym->scancode == 49) key |= WKC_BACKSPACE;
#elif defined(__sgi__)
if (sym->scancode == 22) key |= WKC_BACKQUOTE;
#else #else
if (sym->scancode == 41) key |= WKC_BACKQUOTE; // Linux console if (sym->scancode == 41) key |= WKC_BACKQUOTE; // Linux console
if (sym->scancode == 49) key |= WKC_BACKQUOTE; if (sym->scancode == 49) key |= WKC_BACKQUOTE;