summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-03-28 12:33:43 -0400
committerGreg Hudson <ghudson@mit.edu>2014-03-28 15:51:55 -0400
commit613c62d689c31a325d51be88657dedd17af3cf81 (patch)
tree60304e54d353f715cfd7640abe982730188d10f5 /src/tests
parent92f76302fa249713ca461e5fe7fa8ea51467b2a3 (diff)
downloadkrb5-613c62d689c31a325d51be88657dedd17af3cf81.tar.gz
krb5-613c62d689c31a325d51be88657dedd17af3cf81.tar.xz
krb5-613c62d689c31a325d51be88657dedd17af3cf81.zip
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. ticket: 7894 (new) target_version: 1.12.2 tags: pullup
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/gssapi/t_enctypes.c1
-rw-r--r--src/tests/responder.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/gssapi/t_enctypes.c b/src/tests/gssapi/t_enctypes.c
index 79a732a2b..63ca79a8e 100644
--- a/src/tests/gssapi/t_enctypes.c
+++ b/src/tests/gssapi/t_enctypes.c
@@ -33,7 +33,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <getopt.h>
#include "k5-int.h"
#include "common.h"
diff --git a/src/tests/responder.c b/src/tests/responder.c
index 13623d832..d17fdaed6 100644
--- a/src/tests/responder.c
+++ b/src/tests/responder.c
@@ -56,7 +56,7 @@
*/
#include <sys/types.h>
-#include <getopt.h>
+#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <krb5.h>