Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autoconf/hercules.m4
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ AC_DEFUN([_HC_CHECK_NEED_GETOPT_WRAPPER],
Will the linker complain about duplicate
symbols for getopt? We'll soon find out!
*/
int getopt(int, char *const[], const char *);
extern char *optarg;
extern int optind;

Expand All @@ -315,6 +316,7 @@ DUPGETOPT1
needs getopt. Will linker complain about
duplicate symbols for getopt? Let's see.
*/
int getopt(int, char *const[], const char *);
extern char *optarg;
extern int optind;
extern int test2();
Expand Down Expand Up @@ -385,7 +387,7 @@ AC_DEFUN([HC_CHECK_NEED_GETOPT_OPTRESET],
[hc_cv_need_getopt_optreset],
[
AC_TRY_LINK(
[],
[int getopt(int, char *const[], const char *);],
[
extern int optreset;
optreset=1;
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ if test "$GCC" = "yes"; then

-g -O2 -fomit-frame-pointer
*/
#include <string.h>

int foo ()
{
Expand Down