getopt: do not include sys/cdefs.h to please Alpine Linux
* m4/getopt.m4: Pretend sys/cdefs.h is missing, so that Alpine linux does not output a warning which we would turn into an error.
This commit is contained in:
parent
29037c1f55
commit
6b70edabf0
1 changed files with 4 additions and 8 deletions
12
m4/getopt.m4
12
m4/getopt.m4
|
|
@ -1,5 +1,5 @@
|
||||||
# getopt.m4 serial 47
|
# getopt.m4 serial 47
|
||||||
dnl Copyright (C) 2002-2006, 2008-2020 Free Software Foundation, Inc.
|
dnl Copyright (C) 2002-2006, 2008-2020, 2022 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
|
@ -363,13 +363,9 @@ dnl is ambiguous with environment values that contain newlines.
|
||||||
|
|
||||||
AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
|
AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
|
||||||
[
|
[
|
||||||
AC_CHECK_HEADERS_ONCE([sys/cdefs.h])
|
# pretend HAVE_SYS_CDEFS_H is always 0 including <sys/defs.h> isn't
|
||||||
if test $ac_cv_header_sys_cdefs_h = yes; then
|
# really necessary and causes warning on Alpine Linux.
|
||||||
HAVE_SYS_CDEFS_H=1
|
AC_SUBST([HAVE_SYS_CDEFS_H], [0])
|
||||||
else
|
|
||||||
HAVE_SYS_CDEFS_H=0
|
|
||||||
fi
|
|
||||||
AC_SUBST([HAVE_SYS_CDEFS_H])
|
|
||||||
|
|
||||||
AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
|
AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
|
||||||
[Define to rpl_ if the getopt replacement functions and variables
|
[Define to rpl_ if the getopt replacement functions and variables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue