summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/getopt.h')
-rw-r--r--Build/source/texk/kpathsea/getopt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/getopt.h b/Build/source/texk/kpathsea/getopt.h
index 8acf05fb4fb..e96881d4e6f 100644
--- a/Build/source/texk/kpathsea/getopt.h
+++ b/Build/source/texk/kpathsea/getopt.h
@@ -47,6 +47,9 @@
extern "C" {
#endif
+#if !defined (__GETOPT_H__)
+/* Avoid to redeclare the getopt API. */
+
/* For communication from `getopt' to the caller.
When `getopt' finds an option that takes an argument,
the argument value is returned here.
@@ -78,6 +81,8 @@ extern KPSEDLL int opterr;
extern KPSEDLL int optopt;
+#endif /* !__GETOPT_H__ */
+
#ifndef __need_getopt
/* Describe the long-named options requested by the application.
The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector