diff options
author | sabetts <sabetts> | 2001-09-06 06:38:53 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-09-06 06:38:53 +0000 |
commit | d2065e0c9cee6ddac82ab12bdb887f3813691e34 (patch) | |
tree | a31c0111372c41347ecb8dd5e66d6652892238d7 /src/getopt.c | |
parent | a4fa820f95317e35050735d8efa97b8ccf1fc632 (diff) | |
download | ratpoison-d2065e0c9cee6ddac82ab12bdb887f3813691e34.zip |
* configure.in: check for getopt and getopt_long.
* src/getopt.c: wrap the whole file in an #ifndef HAVE_GETOPT_LONG
* src/getopt1.c: wrap the whole file in an #ifndef HAVE_GETOPT_LONG
Diffstat (limited to 'src/getopt.c')
-rw-r--r-- | src/getopt.c | 5 |
1 files changed, 5 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 */ |