summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-06-01 07:36:04 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-06-01 07:36:04 +0100
commitc42f3711d46217a5ce2abcb801aa61a01190946a (patch)
tree353771f04c3949d916207b59797b0b30b6445567 /5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
parent5.4: backport from 5.6 time64 alsa patches (diff)
downloadlinux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.tar.gz
linux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.tar.bz2
linux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.zip
5.7: base on 5.6 patches
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch')
-rw-r--r--5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch b/5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
new file mode 100644
index 0000000..24a4199
--- /dev/null
+++ b/5.7/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
@@ -0,0 +1,28 @@
+From 1f4498530090a5fe7f6b2c46f2beb8818d7cb27b Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 29 Dec 2008 06:52:59 -0500
+Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks
+
+Only check __KERNEL__ so we don't assume the C library is glibc.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ include/uapi/linux/stat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h
+index 7b35e98d3c58..eb7474652d27 100644
+--- a/include/uapi/linux/stat.h
++++ b/include/uapi/linux/stat.h
+@@ -4,7 +4,7 @@
+
+ #include <linux/types.h>
+
+-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
++#if defined(__KERNEL__)
+
+ #define S_IFMT 00170000
+ #define S_IFSOCK 0140000
+--
+2.16.1
+