]> git.ipfire.org Git - thirdparty/krb5.git/commit
Get getopt from unistd.h (not getopt.h) in tests
authorGreg Hudson <ghudson@mit.edu>
Fri, 28 Mar 2014 16:33:43 +0000 (12:33 -0400)
committerTom Yu <tlyu@mit.edu>
Thu, 26 Jun 2014 21:17:39 +0000 (17:17 -0400)
commit4456c7e55e9ee5fcd3ce660317240e822be03043
tree7bf2786f2b225eb4de53796ae2886d5c92c2fdf7
parentf12b6e40ec0e0a31d5fe441ae52c507c417246b8
Get getopt from unistd.h (not getopt.h) in tests

POSIX defines getopt to be declared in unistd.h, and HP-UX (as of
version 11.31) does not appear to have getopt.h.  In test programs
which currently include getopt.h and aren't currently built on
Windows, include unistd.h or just assume we will get it via k5-int.h.

(cherry picked from commit 613c62d689c31a325d51be88657dedd17af3cf81)

ticket: 7894
version_fixed: 1.12.2
status: resolved
src/lib/krb5/krb/t_cc_config.c
src/lib/krb5/krb/t_in_ccache.c
src/tests/gssapi/t_enctypes.c
src/tests/responder.c