aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Osipov <michael.osipov@siemens.com>2023-08-22 10:05:24 +0200
committerGreg Hudson <ghudson@mit.edu>2024-06-24 19:35:23 -0400
commit8780d8831b07d2dc4348645de202e70424c5987e (patch)
tree89e99379556e5246520918c286d35c6d1ffb4697
parentfec2c44ee93bfd3282bed99509a941d56a6e2c21 (diff)
downloadkrb5-8780d8831b07d2dc4348645de202e70424c5987e.zip
krb5-8780d8831b07d2dc4348645de202e70424c5987e.tar.gz
krb5-8780d8831b07d2dc4348645de202e70424c5987e.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] (cherry picked from commit a6abaaf54925a4b63aff8c81da1a0af3a7c03466) ticket: 9102 version_fixed: 1.21.3
-rw-r--r--src/appl/simple/client/sim_client.c3
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"