aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/unix_main.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-29 22:05:20 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-29 22:05:20 +0000
commit72dc3da821c616b97246e6b7cf5587c2e936d144 (patch)
tree0293ef990c25d79e7e461923c7a43afffdf9ae67 /code/unix/unix_main.c
parent7c7b8ece05c0fb249a08e2da1f746f8a34a01b31 (diff)
downloadioquake3-aero-72dc3da821c616b97246e6b7cf5587c2e936d144.tar.gz
ioquake3-aero-72dc3da821c616b97246e6b7cf5587c2e936d144.zip
* Beginnings of Solaris support from Vincent S. Cojot
* Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO git-svn-id: svn://svn.icculus.org/quake3/trunk@199 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/unix_main.c')
-rw-r--r--code/unix/unix_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c
index 7d913cc..7ee5620 100644
--- a/code/unix/unix_main.c
+++ b/code/unix/unix_main.c
@@ -47,6 +47,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <fpu_control.h> // bk001213 - force dumps on divide by zero
#endif
+#if defined(__sun)
+ #include <sys/file.h>
+#endif
+
// FIXME TTimo should we gard this? most *nix system should comply?
#include <termios.h>
@@ -391,7 +395,7 @@ void Sys_Init(void)
#else
Cvar_Set( "arch", "freebsd unknown" );
#endif
-#elif defined __sun__
+#elif defined(__sun)
#if defined __i386__
Cvar_Set( "arch", "solaris x86" );
#elif defined __sparc__
@@ -801,6 +805,8 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
snprintf (fname, sizeof(fname), "%shppa.so", name);
#elif defined __sh__
snprintf (fname, sizeof(fname), "%ssh.so", name);
+#elif defined __sparc__
+ snprintf (fname, sizeof(fname), "%ssparc.so", name);
#else
#error Unknown arch
#endif