From: Ken Raeburn Date: Mon, 19 Jul 2004 20:47:12 +0000 (+0000) Subject: * fake-addrinfo.c: New file. X-Git-Tag: krb5-1.4-beta1~194 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7afad298f17e6d9ea6df450aaaa19f5990562d6b;p=krb5.git * fake-addrinfo.c: New file. * Makefile.in (STLIBOBJS, LIBOBJS, SRCS): Add it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16614 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/support/ChangeLog b/src/util/support/ChangeLog index 36e8fefe8..8a8034dfe 100644 --- a/src/util/support/ChangeLog +++ b/src/util/support/ChangeLog @@ -1,3 +1,8 @@ +2004-07-19 Ken Raeburn + + * fake-addrinfo.c: New file. + * Makefile.in (STLIBOBJS, LIBOBJS, SRCS): Add it. + 2004-07-06 Ken Raeburn * threads.c (struct tsd_block) [_WIN32]: Define. diff --git a/src/util/support/Makefile.in b/src/util/support/Makefile.in index 6ce7bdaba..034bade41 100644 --- a/src/util/support/Makefile.in +++ b/src/util/support/Makefile.in @@ -23,10 +23,12 @@ LIBINITFUNC=krb5int_thread_support_init LIBFINIFUNC=krb5int_thread_support_fini STLIBOBJS= \ - threads.o + threads.o \ + fake-addrinfo.o LIBOBJS= \ - $(OUTPRE)threads.$(OBJEXT) + $(OUTPRE)threads.$(OBJEXT) \ + $(OUTPRE)fake-addrinfo.$(OBJEXT) STOBJLISTS=OBJS.ST @@ -35,7 +37,8 @@ INSTALLFILE = cp LOCALINCLUDES=-I. -I$(srcdir) SRCS=\ - $(srcdir)/threads.c + $(srcdir)/threads.c \ + $(srcdir)/fake-addrinfo.c SHLIB_EXPDEPS = SHLIB_EXPLIBS= $(LIBS) SHLIB_DIRS= @@ -65,4 +68,8 @@ $(BUILDTOP)/include/krb5/autoconf.h: $(SRCTOP)/include/krb5/autoconf.h.in # threads.so threads.po $(OUTPRE)threads.$(OBJEXT): threads.c $(SRCTOP)/include/k5-thread.h \ $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h +fake-addrinfo.so fake-addrinfo.po $(OUTPRE)fake-addrinfo.$(OBJEXT): fake-addrinfo.c $(SRCTOP)/include/fake-addrinfo.h \ + $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ + $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/k5-platform.h \ + $(SRCTOP)/include/k5-thread.h diff --git a/src/util/support/fake-addrinfo.c b/src/util/support/fake-addrinfo.c new file mode 100644 index 000000000..253763d19 --- /dev/null +++ b/src/util/support/fake-addrinfo.c @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2004 by the Massachusetts Institute of Technology, + * Cambridge, MA, USA. All Rights Reserved. + * + * This software is being provided to you, the LICENSEE, by the + * Massachusetts Institute of Technology (M.I.T.) under the following + * license. By obtaining, using and/or copying this software, you agree + * that you have read, understood, and will comply with these terms and + * conditions: + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify and distribute + * this software and its documentation for any purpose and without fee or + * royalty is hereby granted, provided that you agree to comply with the + * following copyright notice and statements, including the disclaimer, and + * that the same appear on ALL copies of the software and documentation, + * including modifications that you make for internal use or for + * distribution: + * + * THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS + * OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not + * limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF + * MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF + * THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY + * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + * + * The name of the Massachusetts Institute of Technology or M.I.T. may NOT + * be used in advertising or publicity pertaining to distribution of the + * software. Title to copyright in this software and any associated + * documentation shall at all times remain with M.I.T., and USER agrees to + * preserve same. + * + * Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + */ + +#include "fake-addrinfo.h" + +/* Allocate the storage here. */ +struct fac krb5int_fac = { 0 };