res = atlsys_1L(targ, cmnd, verb, 0);
if (res)
{
-/*
- * Accept GNU (HURD) as Linux, since they seem to use same stuff;
- * This is patch from Sylvestre Ledru; I have no direct experience wt HURD
- */
- if(strstr(res, "Linux") || strstr(res, "GNU")) OS = OSLinux;
+ if(strstr(res, "Linux")) OS = OSLinux;
else if(strstr(res, "FreeBSD")) OS = OSFreeBSD;
else if (strstr(res, "Darwin")) OS = OSOSX;
else if(strstr(res, "SunOS"))
else ierr = 1;
}
else if (strstr(res, "HP-UX")) OS = OSHPUX;
+/*
+ * Accept GNU (HURD) as Linux, since they seem to use same stuff;
+ * This is patch from Sylvestre Ledru; I have no direct experience wt HURD
+ */
+ else if(strstr(res, "GNU")) OS = OSLinux;
else ierr = 1;
free(res);
}