0001-explicitly-disable-replacing-getopt.patch 738 B

123456789101112131415161718192021222324252627282930
  1. Subject: explicitly disable replacing getopt
  2. Explicitly disable replacing getopt to avoid compilation error like below.
  3. xstrtol-error.c:84:26: error: invalid use of undefined type 'struct rpl_option'
  4. Upstream-Status: Inappropriate [workaround]
  5. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
  6. ---
  7. m4/getopt.m4 | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/m4/getopt.m4 b/m4/getopt.m4
  10. index 3ebc7b7..8934426 100644
  11. --- a/m4/getopt.m4
  12. +++ b/m4/getopt.m4
  13. @@ -22,8 +22,8 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
  14. fi
  15. ])
  16. if test $REPLACE_GETOPT = 1; then
  17. - dnl Arrange for getopt.h to be created.
  18. - gl_GETOPT_SUBSTITUTE_HEADER
  19. + dnl Explicitly disable replacing getopt
  20. + :
  21. fi
  22. ])
  23. --
  24. 2.11.0