Blame SOURCES/0001-Remove-call-to-LoaderGetOS.patch

5e39e6
From 74d39213b4cf89fdaa6f14913d0150852a1090f2 Mon Sep 17 00:00:00 2001
5e39e6
From: Adam Jackson <ajax@redhat.com>
5e39e6
Date: Tue, 24 Jan 2017 09:43:43 -0500
5e39e6
Subject: [PATCH] Remove call to LoaderGetOS
5e39e6
5e39e6
If you're not using Linux, this isn't likely to build let alone run. And
5e39e6
if it _does_ build on non-Linux, it's probably because someone went out
5e39e6
of their way to try to make it work.
5e39e6
5e39e6
Signed-off-by: Adam Jackson <ajax@redhat.com>
5e39e6
---
5e39e6
 src/v4l.c | 18 ++----------------
5e39e6
 1 file changed, 2 insertions(+), 16 deletions(-)
5e39e6
5e39e6
diff --git a/src/v4l.c b/src/v4l.c
5e39e6
index 10e782b..f4b2b4b 100644
5e39e6
--- a/src/v4l.c
5e39e6
+++ b/src/v4l.c
5e39e6
@@ -92,22 +92,8 @@ v4lSetup(pointer module, pointer opts, int *errmaj, int *errmin)
5e39e6
     }
5e39e6
 
5e39e6
     setupDone = TRUE;
5e39e6
-
5e39e6
-    /* Check that we're being loaded on a Linux system */
5e39e6
-    LoaderGetOS(&osname, NULL, NULL, NULL);
5e39e6
-    if (!osname || strcmp(osname, "linux") != 0) {
5e39e6
-        if (errmaj)
5e39e6
-            *errmaj = LDR_BADOS;
5e39e6
-        if (errmin)
5e39e6
-            *errmin = 0;
5e39e6
-        return NULL;
5e39e6
-    } else {
5e39e6
-        /* OK */
5e39e6
-
5e39e6
-        xf86AddDriver (&V4L, module, 0);
5e39e6
-
5e39e6
-        return (pointer)1;
5e39e6
-    }
5e39e6
+    xf86AddDriver (&V4L, module, 0);
5e39e6
+    return (pointer)1;
5e39e6
 }
5e39e6
 
5e39e6
 #else
5e39e6
-- 
5e39e6
2.17.1
5e39e6