krb5 commit [krb5-1.11]: Get getopt from unistd.h (not getopt.h) in tests

Tom Yu tlyu at mit.edu
Fri Feb 6 17:26:58 EST 2015


https://github.com/krb5/krb5/commit/98b8fddd856bbbacf351755ac03187550c4dd157
commit 98b8fddd856bbbacf351755ac03187550c4dd157
Author: Greg Hudson <ghudson at mit.edu>
Date:   Fri Mar 28 12:33:43 2014 -0400

    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.
    
    (back ported from commit 613c62d689c31a325d51be88657dedd17af3cf81)
    
    ticket: 8095 (new)
    version_fixed: 1.11.6
    status: resolved

 src/lib/krb5/krb/t_cc_config.c |    1 -
 src/lib/krb5/krb/t_in_ccache.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/lib/krb5/krb/t_cc_config.c b/src/lib/krb5/krb/t_cc_config.c
index 04e7283..ffd90da 100644
--- a/src/lib/krb5/krb/t_cc_config.c
+++ b/src/lib/krb5/krb/t_cc_config.c
@@ -36,7 +36,6 @@
  */
 
 #include <k5-int.h>
-#include <getopt.h>
 
 static void
 bail_on_err(krb5_context context, const char *msg, krb5_error_code code)
diff --git a/src/lib/krb5/krb/t_in_ccache.c b/src/lib/krb5/krb/t_in_ccache.c
index 30b7f28..0bb203f 100644
--- a/src/lib/krb5/krb/t_in_ccache.c
+++ b/src/lib/krb5/krb/t_in_ccache.c
@@ -36,7 +36,6 @@
  */
 
 #include "k5-int.h"
-#include <getopt.h>
 
 static void
 bail_on_err(krb5_context context, const char *msg, krb5_error_code code)


More information about the cvs-krb5 mailing list