[31325] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.21]: Eliminate sim_client include of getopt.h

daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Mon Jun 24 19:50:45 2024

From: ghudson@mit.edu
To: cvs-krb5@mit.edu
Message-Id: <20240624235040.5D9B4101A5F@krbdev.mit.edu>
Date: Mon, 24 Jun 2024 19:50:40 -0400 (EDT)
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/8780d8831b07d2dc4348645de202e70424c5987e
commit 8780d8831b07d2dc4348645de202e70424c5987e
Author: Michael Osipov <michael.osipov@siemens.com>
Date:   Tue Aug 22 10:05:24 2023 +0200

    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

 src/appl/simple/client/sim_client.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c
index ea1379e60..6f4283375 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"
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post