[OpenWrt-Devel] [PATCH 02/05] [tools] findutils glibc >= 2.23 compat

Weedy weedy2887 at gmail.com
Mon Apr 25 12:56:45 EDT 2016


With the update to glibc 2.23, sys/types.h doesn't inherit
sys/sysmacros.h anymore. We need to include it manually.

Signed-off-by: Weedy <weedy2887 at gmail.com>


--- /dev/null	2016-04-18 05:53:30.273258717 -0400
+++ tools/findutils/patches/125-glibc-2.23-sysmacros.patch	2016-04-24
15:36:39.330172567 -0400
@@ -0,0 +1,10 @@
+--- a/gl/lib/mountlist.c.bak	2016-04-24 15:33:43.668421848 -0400
++++ b/gl/lib/mountlist.c	2016-04-24 15:34:12.972045613 -0400
+@@ -59,6 +59,7 @@
+ #ifdef MOUNTED_GETMNTENT1       /* 4.3BSD, SunOS, HP-UX, Dynix, Irix.  */
+ # include <mntent.h>
+ # include <sys/types.h>
++# include <sys/sysmacros.h>
+ # if !defined MOUNTED
+ #  if defined _PATH_MOUNTED     /* GNU libc  */
+ #   define MOUNTED _PATH_MOUNTED
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list