summaryrefslogtreecommitdiff
path: root/src/getopt1.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-09-06 06:38:53 +0000
committersabetts <sabetts>2001-09-06 06:38:53 +0000
commitd2065e0c9cee6ddac82ab12bdb887f3813691e34 (patch)
treea31c0111372c41347ecb8dd5e66d6652892238d7 /src/getopt1.c
parenta4fa820f95317e35050735d8efa97b8ccf1fc632 (diff)
downloadratpoison-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/getopt1.c')
-rw-r--r--src/getopt1.c5
1 files changed, 5 insertions, 0 deletions
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 */