diff options
author | Michael Osipov <michael.osipov@siemens.com> | 2023-08-22 10:05:24 +0200 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2023-08-22 18:28:14 -0400 |
commit | a6abaaf54925a4b63aff8c81da1a0af3a7c03466 (patch) | |
tree | cdb2089e7f54ae1548c36db3b99de9a9867e2e75 | |
parent | ae704daad5caa502387aa39ed6d596cb117d5b3a (diff) | |
download | krb5-a6abaaf54925a4b63aff8c81da1a0af3a7c03466.zip krb5-a6abaaf54925a4b63aff8c81da1a0af3a7c03466.tar.gz krb5-a6abaaf54925a4b63aff8c81da1a0af3a7c03466.tar.bz2 |
Eliminate sim_client include of getopt.h
Commit 9139a60c94c24e41109574e84e7cda9c2dc3fb38 added an unconditional
include of getopt.h, which is non-portable (it isn't present on HP-UX)
and unecessary for getopt(). The same commit also disabled the
include of unistd.h (which is necessary for getopt()), as sim_client
no longer indirectly includes autoconf. Make the unistd.h include
unconditional and remove the getopt.h include.
[ghudson@mit.edu: edited commit message]
ticket: 9102 (new)
tags: pullup
target_version: 1.21-next
-rw-r--r-- | src/appl/simple/client/sim_client.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index ea1379e..6f42833 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -39,10 +39,7 @@ #include <string.h> #include <errno.h> #include <netdb.h> -#include <getopt.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> -#endif #include "simple.h" |