From d4ed5aa0e08026ce3d46fd63eeabbc0d6a9006a6 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Tue, 22 Jan 2019 10:31:26 +0000 Subject: [PATCH] kfreebsd Gbp-Pq: Name kfreebsd.patch --- CONFIG/src/probe_OS.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CONFIG/src/probe_OS.c b/CONFIG/src/probe_OS.c index 1bdde49..63dd98a 100644 --- a/CONFIG/src/probe_OS.c +++ b/CONFIG/src/probe_OS.c @@ -18,11 +18,7 @@ enum OSTYPE ProbeOS(int verb, char *targ) 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")) @@ -59,6 +55,11 @@ enum OSTYPE ProbeOS(int verb, char *targ) 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); } -- 2.30.2