Make static linking not require -lsocket, -lnsl, etc.
authorKen Raeburn <raeburn@mit.edu>
Mon, 15 Nov 2004 22:16:02 +0000 (22:16 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 15 Nov 2004 22:16:02 +0000 (22:16 +0000)
commit21b23db6f1226e9cbcc89703369f8a48de5eabd5
treeb71ac821f5aec51d4522b5508138e0219d461716
parent7e47f7162cb6fe83e269e9ddc3602b2869a46c90
Make static linking not require -lsocket, -lnsl, etc.
Don't duplicate macro definitions.

Header files and comments still need some cleanup.

* cache-addrinfo.h, init-addrinfo.c: New files, split out from fake-addrinfo.c.
* fake-addrinfo.c: Include cache-addrinfo.h.
(FAI_CACHE, struct face, struct fac): Moved to cache-addrinfo.h.
(krb5int_fac, krb5int_init_fac, krb5int_fini_fac): Moved to init-addrinfo.c.
(addrinfo, struct addrinfo): Don't define.
(AI_* and NI_* and EAI_* macros): Don't define.
* threads.c: Include cache-addrinfo.h.
(krb5int_init_fac, krb5int_fini_fac): Don't declare.
* Makefile.in (SRCS, STLIBOBJS, LIBOBJS): Updated.

ticket: 2761
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16867 dc483132-0cff-0310-8789-dd5450dbe970
src/util/support/ChangeLog
src/util/support/Makefile.in
src/util/support/cache-addrinfo.h [new file with mode: 0644]
src/util/support/fake-addrinfo.c
src/util/support/init-addrinfo.c [new file with mode: 0644]
src/util/support/threads.c