summaryrefslogtreecommitdiff
path: root/include/bsd/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bsd/getopt.h')
-rw-r--r--include/bsd/getopt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bsd/getopt.h b/include/bsd/getopt.h
index d2963cb..ba2c4eb 100644
--- a/include/bsd/getopt.h
+++ b/include/bsd/getopt.h
@@ -39,6 +39,11 @@
__BEGIN_DECLS
extern int optreset;
+#ifdef LIBBSD_OVERLAY
+#undef getopt
+#define getopt(argc, argv, optstr) bsd_getopt(argc, argv, optstr)
+#endif
+
int bsd_getopt (int, char **, char *);
__END_DECLS