Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gnulib-local / lib / unistd.in.h.diff
1 diff --git a/unistd.in.h b/unistd.in.h
2 index b82be83..9df3f13 100644
3 --- a/unistd.in.h
4 +++ b/unistd.in.h
5 @@ -125,7 +125,11 @@
6  
7  /* Get getopt(), optarg, optind, opterr, optopt.
8     But avoid namespace pollution on glibc systems.  */
9 -#if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
10 +/* Also, don't include <getopt.h> inside libgettextpo, because we use
11 +   the getopt module only in gettext-tools/gnulib-lib/, not in
12 +   gettext-tools/libgettextpo/, but there is only a single
13 +   GNULIB_UNISTD_H_GETOPT variable for both.  */
14 +#if @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
15  # define __need_getopt
16  # include <getopt.h>
17  #endif