summaryrefslogtreecommitdiffstats
path: root/includes.h
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2001-09-17 14:34:33 -0700
committerTim Rice <tim@multitalents.net>2001-09-17 14:34:33 -0700
commita4f7ae1a35b5da61705bea75bcc50bc7a27726dd (patch)
tree366ca694b41098a5808d5e584244241dacba921a /includes.h
parentc3bd7eccac2c9d087dd23ab4929d423414d3f18e (diff)
- (tim) [includes.h openbsd-compat/getopt.c openbsd-compat/getopt.h]
rename getopt() to BSDgetopt() to keep form conflicting with system getopt(). [Makefile.in configure.in] disable filepriv until I can add missing procpriv calls.
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 554e9476..c73780d2 100644
--- a/includes.h
+++ b/includes.h
@@ -51,6 +51,9 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
+#ifndef HAVE_GETOPT_OPTRESET
+#define getopt(ac, av, o) BSDgetopt(ac, av, o)
+#endif
#ifdef HAVE_BSTRING_H
# include <bstring.h>
#endif