#include #include "../configure.h" #if HAVE_UNAME #include /* return a string indicating the OS type (i.e. "Linux", "SINIX-D", ... ) */ int mygetostype(char *buf, int max) { struct utsname sysname; int ret; if ((ret = uname(&sysname)) == -1) strcpy (buf,""); else strncat (strcpy(buf,""), sysname.sysname, max); return ret; } #else int mygetostype(char *buf, int max) { strcpy (buf,""); return -1; } #endif