diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/getopt.c | 5 | ||||
-rw-r--r-- | src/getopt1.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/getopt.c b/src/getopt.c index 84faa8b..10d8b4e 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -26,6 +26,7 @@ /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. Ditto for AIX 3.2 and <stdlib.h>. */ + #ifndef _NO_PROTO #define _NO_PROTO #endif @@ -34,6 +35,8 @@ #include <config.h> #endif +#ifndef HAVE_GETOPT_LONG + #if !defined (__STDC__) || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ @@ -1043,3 +1046,5 @@ main (argc, argv) } #endif /* TEST */ + +#endif /* HAVE_GETOPT_LONG */ diff --git a/src/getopt1.c b/src/getopt1.c index af8e681..d872f65 100644 --- a/src/getopt1.c +++ b/src/getopt1.c @@ -19,10 +19,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + #ifdef HAVE_CONFIG_H #include <config.h> #endif +#ifndef HAVE_GETOPT_LONG + #include "getopt.h" #if !defined (__STDC__) || !__STDC__ @@ -187,3 +190,5 @@ main (argc, argv) } #endif /* TEST */ + +#endif /* HAVE_GETOPT_LONG */ |