lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 22 Feb 2023 08:31:10 +0100
From:   Thomas Devoogdt <thomas@...oogdt.com>
To:     netdev@...r.kernel.org
Cc:     Michal Kubecek <mkubecek@...e.cz>,
        Thomas Devoogdt <thomas.devoogdt@...co.com>
Subject: [PATCH ethtool] uapi: if.h: fix linux/libc-compat.h include on Linux < 3.12

./uapi/linux/if.h:23:10: fatal error: linux/libc-compat.h: No such file or directory
. #include <linux/libc-compat.h>          /* for compatibility with glibc */
          ^~~~~~~~~~~~~~~~~~~~~

https://github.com/torvalds/linux/commit/cfd280c91253cc28e4919e349fa7a813b63e71e8

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@...co.com>
---
 uapi/linux/if.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/uapi/linux/if.h b/uapi/linux/if.h
index b287b2a..8861497 100644
--- a/uapi/linux/if.h
+++ b/uapi/linux/if.h
@@ -20,7 +20,12 @@
 #ifndef _LINUX_IF_H
 #define _LINUX_IF_H
 
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)
 #include <linux/libc-compat.h>          /* for compatibility with glibc */
+#endif
+
 #include <linux/types.h>		/* for "__kernel_caddr_t" et al	*/
 #include <linux/socket.h>		/* for "struct sockaddr" et al	*/
 		/* for "__user" et al           */
-- 
2.39.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ