summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch')
-rw-r--r--meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch b/meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch
new file mode 100644
index 0000000000..351f87cab5
--- /dev/null
+++ b/meta/recipes-extended/diffutils/diffutils-3.6/0001-explicitly-disable-replacing-getopt.patch
@@ -0,0 +1,30 @@
1Subject: explicitly disable replacing getopt
2
3Explicitly disable replacing getopt to avoid compilation error like below.
4
5 xstrtol-error.c:84:26: error: invalid use of undefined type 'struct rpl_option'
6
7Upstream-Status: Inappropriate [workaround]
8Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
9---
10 m4/getopt.m4 | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/m4/getopt.m4 b/m4/getopt.m4
14index 3ebc7b7..8934426 100644
15--- a/m4/getopt.m4
16+++ b/m4/getopt.m4
17@@ -22,8 +22,8 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
18 fi
19 ])
20 if test $REPLACE_GETOPT = 1; then
21- dnl Arrange for getopt.h to be created.
22- gl_GETOPT_SUBSTITUTE_HEADER
23+ dnl Explicitly disable replacing getopt
24+ :
25 fi
26 ])
27
28--
292.11.0
30