[AD] Detecting SunOS/Solaris |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
The attached patch adds an OSTYPE_SUNOS to detect the SunOS/Solaris Unix
variant.
*** allegro/src/unix/usystem.c.old Sun Oct 6 11:17:48 2002
--- allegro/src/unix/usystem.c Sun Oct 6 11:18:09 2002
***************
*** 175,180 ****
--- 175,183 ----
else if (!strcmp(utsn.sysname, "QNX")) {
os_type = OSTYPE_QNX;
}
+ else if (!strcmp(utsn.sysname, "SunOS")) {
+ os_type = OSTYPE_SUNOS;
+ }
else {
os_type = OSTYPE_UNIX; /* that's all we can say for now */
}
*** allegro/include/allegro/system.h.old Sun Oct 6 11:16:59 2002
--- allegro/include/allegro/system.h Sun Oct 6 11:17:06 2002
***************
*** 52,57 ****
--- 52,58 ----
#define OSTYPE_BEOS AL_ID('B','E','O','S')
#define OSTYPE_QNX AL_ID('Q','N','X',' ')
#define OSTYPE_MACOS AL_ID('M','A','C',' ')
+ #define OSTYPE_SUNOS AL_ID('S','U','N',' ')
AL_VAR(int, os_type);
AL_VAR(int, os_version);