summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2006-10-18 03:15:24 +0000
committerEzra Peisach <epeisach@mit.edu>2006-10-18 03:15:24 +0000
commitf44875f7b60f894b5390f3e2a578bc4ceba25601 (patch)
tree04293cb050bd9d8eff79ef7a488dbd958c0aecc4
parent25452ebe24155c6f548bfc0d6840f6c34b5a4af3 (diff)
downloadkrb5-f44875f7b60f894b5390f3e2a578bc4ceba25601.tar.gz
krb5-f44875f7b60f894b5390f3e2a578bc4ceba25601.tar.xz
krb5-f44875f7b60f894b5390f3e2a578bc4ceba25601.zip
Add supp-int.h to provide prototypes for declared internal functions.
*.x: Include this header Makefile.in: Update dependencies git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18728 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/support/Makefile.in7
-rw-r--r--src/util/support/errors.c1
-rw-r--r--src/util/support/fake-addrinfo.c2
-rw-r--r--src/util/support/supp-int.h36
-rw-r--r--src/util/support/threads.c1
5 files changed, 43 insertions, 4 deletions
diff --git a/src/util/support/Makefile.in b/src/util/support/Makefile.in
index a6aa3fccf..78c322ec0 100644
--- a/src/util/support/Makefile.in
+++ b/src/util/support/Makefile.in
@@ -87,7 +87,8 @@ t_mktime: gmt_mktime.c
threads.so threads.po $(OUTPRE)threads.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
$(SRCTOP)/include/fake-addrinfo.h $(SRCTOP)/include/k5-platform.h \
$(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/port-sockets.h \
- $(SRCTOP)/include/socket-utils.h cache-addrinfo.h threads.c
+ $(SRCTOP)/include/socket-utils.h cache-addrinfo.h supp-int.h \
+ threads.c
init-addrinfo.so init-addrinfo.po $(OUTPRE)init-addrinfo.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/fake-addrinfo.h \
$(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
@@ -95,11 +96,11 @@ init-addrinfo.so init-addrinfo.po $(OUTPRE)init-addrinfo.$(OBJEXT): \
cache-addrinfo.h init-addrinfo.c
errors.so errors.po $(OUTPRE)errors.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
$(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-platform.h \
- $(SRCTOP)/include/k5-thread.h errors.c
+ $(SRCTOP)/include/k5-thread.h errors.c supp-int.h
gmt_mktime.so gmt_mktime.po $(OUTPRE)gmt_mktime.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h gmt_mktime.c
fake-addrinfo.so fake-addrinfo.po $(OUTPRE)fake-addrinfo.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/fake-addrinfo.h \
$(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
$(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
- cache-addrinfo.h fake-addrinfo.c
+ cache-addrinfo.h fake-addrinfo.c supp-int.h
diff --git a/src/util/support/errors.c b/src/util/support/errors.c
index 5498f8204..56581218a 100644
--- a/src/util/support/errors.c
+++ b/src/util/support/errors.c
@@ -9,6 +9,7 @@
#include "k5-thread.h"
#include "k5-platform.h"
+#include "supp-int.h"
#ifdef _WIN32
#ifndef vsnprintf
diff --git a/src/util/support/fake-addrinfo.c b/src/util/support/fake-addrinfo.c
index a1a4818d2..6db94cf48 100644
--- a/src/util/support/fake-addrinfo.c
+++ b/src/util/support/fake-addrinfo.c
@@ -100,6 +100,7 @@
#include "socket-utils.h"
#include "k5-platform.h"
#include "k5-thread.h"
+#include "supp-int.h"
#include <stdio.h> /* for sprintf */
#include <errno.h>
@@ -1312,7 +1313,6 @@ void freeaddrinfo (struct addrinfo *ai)
}
#endif /* WRAP_GETADDRINFO */
-extern int krb5int_call_thread_support_init(void);
static int krb5int_lock_fac (void)
{
int err;
diff --git a/src/util/support/supp-int.h b/src/util/support/supp-int.h
new file mode 100644
index 000000000..ffc0e6455
--- /dev/null
+++ b/src/util/support/supp-int.h
@@ -0,0 +1,36 @@
+/*
+ * util/support/supp-int.h
+ *
+ * Copyright (C) 2006 by the Massachusetts Institute of Technology.
+ * All rights reserved.
+ *
+ * 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 is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. 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.
+ * M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ *
+ *
+ * Internal prototypes for the krb5support library
+ */
+#ifndef KRB5_SUPP_INT_H__
+#define KRB5_SUPP_INT_H__
+
+extern int krb5int_call_thread_support_init (void);
+
+extern int krb5int_err_init (void);
+
+#endif /* KRB5_SUPP_INT_H__ */
diff --git a/src/util/support/threads.c b/src/util/support/threads.c
index 7693cbb53..968a99554 100644
--- a/src/util/support/threads.c
+++ b/src/util/support/threads.c
@@ -32,6 +32,7 @@
#include <errno.h>
#include "k5-thread.h"
#include "k5-platform.h"
+#include "supp-int.h"
MAKE_INIT_FUNCTION(krb5int_thread_support_init);
MAKE_FINI_FUNCTION(krb5int_thread_support_fini);