[krbdev.mit.edu #8391] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu Mar 31 11:43:27 EDT 2016


Move the util/windows getopt to libkrb5support

Relocate the internal getopt() and getopt_long() code to util/support,
and build conditionally.  Put declarations in k5-platform.h.  Adjust
Windows build directives for src/clients.  Remove getopt-related #defines
from kinit.c, allowing kinit to use getopt_long() on all platforms.

[ghudson at mit.edu: fix some Windows build issues]

https://github.com/krb5/krb5/commit/8f9ade8ec50cde1176411085294f85ecfb2820a4
Author: Matt Rogers <mrogers at redhat.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 8f9ade8ec50cde1176411085294f85ecfb2820a4
Branch: master
 src/Makefile.in                             |    8 ++---
 src/clients/kcpytkt/Makefile.in             |    2 +-
 src/clients/kcpytkt/kcpytkt.c               |    7 +----
 src/clients/kdeltkt/Makefile.in             |    2 +-
 src/clients/kdeltkt/kdeltkt.c               |    7 +----
 src/clients/kdestroy/Makefile.in            |    2 +-
 src/clients/kdestroy/kdestroy.c             |    6 ----
 src/clients/kinit/Makefile.in               |    6 +---
 src/clients/kinit/kinit.c                   |   37 ++-----------------------
 src/clients/klist/Makefile.in               |    2 +-
 src/clients/klist/klist.c                   |    6 ----
 src/clients/kswitch/Makefile.in             |    2 +-
 src/clients/kvno/Makefile.in                |    2 +-
 src/clients/kvno/kvno.c                     |    4 ---
 src/configure.in                            |   20 ++++++++++++++
 src/include/k5-platform.h                   |   39 +++++++++++++++++++++++++++
 src/util/support/Makefile.in                |   23 ++++++++++++++--
 src/util/support/deps                       |    6 ++++
 src/util/{windows => support}/getopt.c      |   14 +++------
 src/util/{windows => support}/getopt_long.c |   13 +++------
 src/util/windows/Makefile.in                |    6 +---
 src/util/windows/getopt.h                   |   34 -----------------------
 src/windows/installer/wix/files.wxi         |    2 -
 src/windows/ms2mit/Makefile.in              |    4 +-
 src/windows/ms2mit/mit2ms.c                 |    4 +--
 src/windows/ms2mit/ms2mit.c                 |    3 --
 26 files changed, 114 insertions(+), 147 deletions(-)



More information about the krb5-bugs mailing list