summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2004-02-23 04:51:07 +0000
committerache <ache@FreeBSD.org>2004-02-23 04:51:07 +0000
commit8dfb22f60719278d1bfaa2353676b42190f7ee02 (patch)
tree9bcb7c2cf45bed4ba98d6246164b1d62aa596095 /include/unistd.h
parent8371e71458dcaa2126be0b30ce531d99670fc3d4 (diff)
downloadFreeBSD-src-8dfb22f60719278d1bfaa2353676b42190f7ee02.zip
FreeBSD-src-8dfb22f60719278d1bfaa2353676b42190f7ee02.tar.gz
Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one)
use it too.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 8901f93..0331308 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -542,7 +542,10 @@ int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t); /* obsoleted by malloc() */
+#ifndef _OPTRESET_DECLARED
+#define _OPTRESET_DECLARED
extern int optreset; /* getopt(3) external variable */
+#endif
#endif /* __BSD_VISIBLE */
__END_DECLS
OpenPOWER on IntegriCloud