summaryrefslogtreecommitdiff
path: root/3.1
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-06 22:27:54 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-06 22:27:54 +0000
commit7ce51373303e12d5e38c49a7f67d7331604cd119 (patch)
treec6ae811f6605c36babefe0f01c47c0b8ceb6bc61 /3.1
parentinitial 3.1 patchset based on last 2.6.39 patchset (diff)
downloadlinux-headers-patches-7ce51373303e12d5e38c49a7f67d7331604cd119.tar.gz
linux-headers-patches-7ce51373303e12d5e38c49a7f67d7331604cd119.tar.bz2
linux-headers-patches-7ce51373303e12d5e38c49a7f67d7331604cd119.zip
simple fix so unifdef can build on a (glibc) system without kernel headers
Diffstat (limited to '3.1')
-rw-r--r--3.1/00_all_0008-unifdef-drop-unused-errno.h-include.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/3.1/00_all_0008-unifdef-drop-unused-errno.h-include.patch b/3.1/00_all_0008-unifdef-drop-unused-errno.h-include.patch
new file mode 100644
index 0000000..7097759
--- /dev/null
+++ b/3.1/00_all_0008-unifdef-drop-unused-errno.h-include.patch
@@ -0,0 +1,32 @@
+From d78f1b26f8bdd8fe35a3e808fda50efb3200475f Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 6 Dec 2011 17:22:42 -0500
+Subject: [PATCH] unifdef: drop unused errno.h include
+
+This is the only header on my system that ends up requiring kernel
+headers, so if the kernel headers aren't available, we end up being
+unable to install kernel headers :).
+
+Since this file doesn't actually use anything from errno.h, drop
+the include so it at least makes us a bit more robust on glibc.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ scripts/unifdef.c | 1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/scripts/unifdef.c b/scripts/unifdef.c
+index 7493c0e..c5dfae5 100644
+--- a/scripts/unifdef.c
++++ b/scripts/unifdef.c
+@@ -48,7 +48,6 @@
+
+ #include <ctype.h>
+ #include <err.h>
+-#include <errno.h>
+ #include <stdarg.h>
+ #include <stdbool.h>
+ #include <stdio.h>
+--
+1.7.6.1
+