diff options
author | Ken Raeburn <raeburn@mit.edu> | 2002-03-26 22:37:04 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2002-03-26 22:37:04 +0000 |
commit | 126757160d1cf1f66e7109c50c53058005a08520 (patch) | |
tree | abc9b4bcb6a85bfab0d89100baa3031e701537cc /src/appl/bsd | |
parent | 8b47254e493130f3210f02d3692eab2a637d9a81 (diff) | |
download | krb5-126757160d1cf1f66e7109c50c53058005a08520.tar.gz krb5-126757160d1cf1f66e7109c50c53058005a08520.tar.xz krb5-126757160d1cf1f66e7109c50c53058005a08520.zip |
Change approach for getaddrinfo support. Now, only fake-addrinfo.h is
included, no magic macros need to be defined, and no special care needs to be
taken to identify a unique object file used in all builds of a library/program.
All defined functions (if any) are static in each object file, and declared
inline under gcc so they can be more easily eliminated. Simplifies
maintenance, and worst case should add no more than a few KB to libraries and
programs.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14291 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/bsd')
-rw-r--r-- | src/appl/bsd/ChangeLog | 5 | ||||
-rw-r--r-- | src/appl/bsd/defines.h | 1 | ||||
-rw-r--r-- | src/appl/bsd/kcmd.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index f541a00cd..bbdf547dc 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +2002-03-26 Ken Raeburn <raeburn@mit.edu> + + * defines.h (FAI_PREFIX): Don't define. + * kcmd.c (kcmd_connect): Don't include fake-addrinfo.c. + 2002-03-20 Ezra Peisach <epeisach@mit.edu> * Makefile.in: Remove dependencies on krb524_err.h for login.o. If diff --git a/src/appl/bsd/defines.h b/src/appl/bsd/defines.h index d8bf86765..93ef6ec62 100644 --- a/src/appl/bsd/defines.h +++ b/src/appl/bsd/defines.h @@ -69,5 +69,4 @@ krb5_error_code rd_and_store_for_creds(krb5_context context, extern int setenv(char *, char *, int); #endif -#define FAI_PREFIX bsd #include "fake-addrinfo.h" diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index 402e6ccb9..e252e03f6 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -188,8 +188,6 @@ restore_sigs (masktype *oldmask) #endif /* POSIX_SIGNALS */ } -#include "fake-addrinfo.c" - static int kcmd_connect (int *sp, int *addrfamilyp, struct sockaddr_in *sockinp, char *hname, char **host_save, unsigned int rport, int *lportp, |