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

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