mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(gawk): patch bundled getopt prototypes to match modern libc declarations
This commit is contained in:
parent
500bce68eb
commit
e20afe69bb
1 changed files with 26 additions and 0 deletions
26
steps-guix/gawk-4.2.1/patches/fix-getopt-prototypes.patch
Normal file
26
steps-guix/gawk-4.2.1/patches/fix-getopt-prototypes.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Fix legacy getopt declarations that conflict with modern libc headers.
|
||||
|
||||
--- gawk-4.2.1/support/getopt.c
|
||||
+++ gawk-4.2.1/support/getopt.c
|
||||
@@ -152,7 +152,7 @@
|
||||
whose names are inconsistent. */
|
||||
|
||||
#ifndef getenv
|
||||
-extern char *getenv ();
|
||||
+extern char *getenv (const char *);
|
||||
#endif
|
||||
|
||||
#endif /* not __GNU_LIBRARY__ */
|
||||
--- gawk-4.2.1/support/getopt.h
|
||||
+++ gawk-4.2.1/support/getopt.h
|
||||
@@ -181,7 +181,7 @@
|
||||
# endif
|
||||
# endif
|
||||
#else /* not __GNU_LIBRARY__ */
|
||||
-extern int getopt ();
|
||||
+extern int getopt (int, char *const *, const char *);
|
||||
#endif /* __GNU_LIBRARY__ */
|
||||
|
||||
#ifndef __need_getopt
|
||||
Loading…
Add table
Add a link
Reference in a new issue