Commit db4eb727527bed8f4b25ba93c1ce18e3ede21762
Fix compilation warnings on Mac OS
Caused by old-style declarations with no argument list.
Author: xaizek
Author date (UTC): 2024-10-17 11:49
Committer name: xaizek
Committer date (UTC): 2024-10-17 21:14
Parent(s): 9dabbcca566f59eef00c4066378876d7af6ce50f
Signing key: 99DC5E4DB05F6BE2
Tree: 9af2e5441abf51ad774c16797bf3849a42f0b603
File src/compat/getopt.c changed (mode: 100644) (index 9ddfb8a89..98373037f) |
... |
... |
static struct _getopt_data getopt_data; |
151 |
151 |
whose names are inconsistent. */ |
whose names are inconsistent. */ |
152 |
152 |
|
|
153 |
153 |
#ifndef getenv |
#ifndef getenv |
154 |
|
extern char *getenv (); |
|
|
154 |
|
extern char *getenv (const char *name); |
155 |
155 |
#endif |
#endif |
156 |
156 |
|
|
157 |
157 |
#endif /* not __GNU_LIBRARY__ */ |
#endif /* not __GNU_LIBRARY__ */ |
File src/compat/getopt.h changed (mode: 100644) (index 56fa905c4..2d7ab1bfa) |
... |
... |
extern int __posix_getopt (int ___argc, char *const *___argv, |
166 |
166 |
# endif |
# endif |
167 |
167 |
# endif |
# endif |
168 |
168 |
#else /* not __GNU_LIBRARY__ */ |
#else /* not __GNU_LIBRARY__ */ |
169 |
|
extern int getopt (); |
|
|
169 |
|
extern int getopt (int argc, char *const *argv, const char *optstring); |
170 |
170 |
#endif /* __GNU_LIBRARY__ */ |
#endif /* __GNU_LIBRARY__ */ |
171 |
171 |
|
|
172 |
172 |
#ifndef __need_getopt |
#ifndef __need_getopt |