aboutsummaryrefslogtreecommitdiffstats
path: root/tools/findutils/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-02-21 15:47:13 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-03-01 00:08:08 +0100
commitc8fdca4f6f5a24c8cefefaf65e6302526442218b (patch)
treeb6177e053742e157825967ff8752164c5cc5de53 /tools/findutils/patches
parent94dd68ff736c75d628a98a1f050d7f0454fc4af1 (diff)
downloadupstream-c8fdca4f6f5a24c8cefefaf65e6302526442218b.tar.gz
upstream-c8fdca4f6f5a24c8cefefaf65e6302526442218b.tar.bz2
upstream-c8fdca4f6f5a24c8cefefaf65e6302526442218b.zip
tools/findutils: update to 4.9.0
Add compilation fix for Ubuntu 20.04. Provided by upstream maintainer: https://github.com/openwrt/packages/issues/17912#issuecomment-1046726426 Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/findutils/patches')
-rw-r--r--tools/findutils/patches/010-endpwent.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/findutils/patches/010-endpwent.patch b/tools/findutils/patches/010-endpwent.patch
new file mode 100644
index 0000000000..dc346f3f76
--- /dev/null
+++ b/tools/findutils/patches/010-endpwent.patch
@@ -0,0 +1,20 @@
+--- a/find/parser.c
++++ b/find/parser.c
+@@ -67,12 +67,12 @@
+ #include "findutils-version.h"
+ #include "system.h"
+
+-
+-#ifndef HAVE_ENDGRENT
+-# define endgrent ()
++#if ! HAVE_ENDGRENT
++# define endgrent() ((void) 0)
+ #endif
+-#ifndef HAVE_ENDPWENT
+-# define endpwent ()
++
++#if ! HAVE_ENDPWENT
++# define endpwent() ((void) 0)
+ #endif
+
+ static bool parse_accesscheck (const struct parser_table*, char *argv[], int *arg_ptr);