Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Subject: explicitly disable replacing getopt |
| 2 | |
| 3 | Explicitly 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 | |
| 7 | Upstream-Status: Inappropriate [workaround] |
| 8 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 9 | --- |
| 10 | m4/getopt.m4 | 4 ++-- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/m4/getopt.m4 b/m4/getopt.m4 |
| 14 | index 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 | -- |
| 29 | 2.11.0 |
| 30 | |