1--- unistd.in.h	2017-05-15 19:05:30.449063823 +0200
2+++ unistd.in.h.new	2017-05-15 19:14:39.145268786 +0200
3@@ -141,7 +141,11 @@
4
5
6 /* Get getopt(), optarg, optind, opterr, optopt.  */
7-#if @GNULIB_GETOPT_POSIX@ && @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT
8+/* Also, don't include <getopt.h> inside libgettextpo, because we use
9+   the getopt module only in gettext-tools/gnulib-lib/, not in
10+   gettext-tools/libgettextpo/, but there is only a single
11+   GNULIB_UNISTD_H_GETOPT variable for both.  */
12+#if @GNULIB_GETOPT_POSIX@ && @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined _GL_SYSTEM_GETOPT
13 # include <getopt-cdefs.h>
14 # include <getopt-pfx-core.h>
15 #endif
16