]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Eliminate sim_client include of getopt.h 1314/head
authorMichael Osipov <michael.osipov@siemens.com>
Tue, 22 Aug 2023 08:05:24 +0000 (10:05 +0200)
committerGreg Hudson <ghudson@mit.edu>
Tue, 22 Aug 2023 22:28:14 +0000 (18:28 -0400)
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

src/appl/simple/client/sim_client.c

index ea1379e60eec6042088fb1348ddd1059439c0d1c..6f4283375652eea3cda455871fb7357f84cfefd6 100644 (file)
 #include <string.h>
 #include <errno.h>
 #include <netdb.h>
-#include <getopt.h>
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 
 #include "simple.h"