unistd: avoid namespace pollution on non-glibc systems
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Feb 2013 00:11:07 +0000 (16:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Feb 2013 00:11:32 +0000 (16:11 -0800)
commit26aae1208b863f1f4d7f98445c0cb22a874fecb4
tree5936e9239b8eb9278894095bdbe0efe249aac55d
parent408cb57bc2a6a3d94083db8195fd1e390bad11c6
unistd: avoid namespace pollution on non-glibc systems

* lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
This avoids namespace pollution on non-glibc systems, by causing
gnulib unistd.h to behave more like glibc unistd.h.  I also hope
that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
ChangeLog
lib/unistd.in.h