Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Marshall <keithmarshall@@users.sf.net>2008-09-01 02:27:58 +0400
committerKeith Marshall <keithmarshall@@users.sf.net>2008-09-01 02:27:58 +0400
commitf43d60be62737d17dea2a97001dec92899c5d8ae (patch)
tree70f05b7c1f4627dc9bc735b3426752e745705263 /winsup/mingw/include/unistd.h
parent31966e093121079ef07b46069d626505ea7956e1 (diff)
Reimplement getopt.c to add getopt_long_only() function.
Diffstat (limited to 'winsup/mingw/include/unistd.h')
-rw-r--r--winsup/mingw/include/unistd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/mingw/include/unistd.h b/winsup/mingw/include/unistd.h
index 54dbc6699..3e7f2364a 100644
--- a/winsup/mingw/include/unistd.h
+++ b/winsup/mingw/include/unistd.h
@@ -1,18 +1,17 @@
+#ifndef _UNISTD_H
/*
* This file is part of the Mingw32 package.
*
* unistd.h maps (roughly) to io.h
+ * Other headers included by unistd.h may be selectively processed;
+ * __UNISTD_H_SOURCED__ enables such selective processing.
*/
-
-#ifndef _UNISTD_H
#define _UNISTD_H
+#define __UNISTD_H_SOURCED__ 1
#include <io.h>
#include <process.h>
-
-#define __UNISTD_GETOPT__
#include <getopt.h>
-#undef __UNISTD_GETOPT__
/* These are also defined in stdio.h. */
#ifndef SEEK_SET
@@ -49,4 +48,5 @@ __CRT_INLINE int ftruncate(int __fd, off_t __length)
}
#endif
+#undef __UNISTD_H_SOURCED__
#endif /* _UNISTD_H */