kfreebsd
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sat, 7 Dec 2019 08:55:29 +0000 (08:55 +0000)
committerSébastien Villemot <sebastien@debian.org>
Sat, 7 Dec 2019 08:55:29 +0000 (08:55 +0000)
Gbp-Pq: Name kfreebsd.patch

CONFIG/src/probe_OS.c

index 1bdde491fe724ac0b06de7a52a6d3205926781e9..63dd98afb6a2555f24e445dcc297e18215a0c55b 100644 (file)
@@ -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);
    }