]> Savannah Git Hosting - gnulib.git/commit
getopt: Fix link error for users of getopt() in <unistd.h>.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Dec 2016 12:07:43 +0000 (13:07 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Dec 2016 12:08:25 +0000 (13:08 +0100)
commit571d60e6f9b53acd386d0cfe73e5c4fbf3a2c9da
treea72fbc3f7953731d5b705582d30e00e844497084
parent2ebd13d97452e41fbd2d1068b38f22a4b714fec3
getopt: Fix link error for users of getopt() in <unistd.h>.

* lib/getopt.in.h (getopt etc.): Do the macro definitions also when
__need_getopt is defined. Undefine all macros before defining them.
* modules/getopt (Include): Clarify that including <unistd.h> is also
OK.
* tests/test-getopt.c: Add comment.
ChangeLog
lib/getopt.in.h
modules/getopt
tests/test-getopt.c