diff --git a/libs/port/getopt.c b/libs/port/getopt.c index cfc1a8fd441..949389a350a 100644 --- a/libs/port/getopt.c +++ b/libs/port/getopt.c @@ -33,6 +33,10 @@ # include #endif +#ifdef HAVE_GETOPT_LONG +#define ELIDE_CODE +#endif + #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ diff --git a/libs/port/getopt1.c b/libs/port/getopt1.c index 5a629effa37..be4b1d1c417 100644 --- a/libs/port/getopt1.c +++ b/libs/port/getopt1.c @@ -24,6 +24,10 @@ #include #endif +#ifdef HAVE_GETOPT_LONG +#define ELIDE_CODE +#endif + #ifdef _LIBC # include #else