Add supp-int.h to provide prototypes for declared internal functions.
authorEzra Peisach <epeisach@mit.edu>
Wed, 18 Oct 2006 03:15:24 +0000 (03:15 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 18 Oct 2006 03:15:24 +0000 (03:15 +0000)
*.x: Include this header
Makefile.in: Update dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18728 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/Makefile.in
src/util/support/errors.c
src/util/support/fake-addrinfo.c
src/util/support/supp-int.h [new file with mode: 0644]
src/util/support/threads.c

index a6aa3fccf4af67a102f2bb25691d902f569c3920..78c322ec00e76254b869a6965e5ac0643df0b80a 100644 (file)
@@ -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
index 5498f8204422f7247b5db04c735f2d9156c16a8d..56581218a2cdc7664f90429b01d31a6b23e3f499 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "k5-thread.h"
 #include "k5-platform.h"
+#include "supp-int.h"
 
 #ifdef _WIN32
 #ifndef vsnprintf
index a1a4818d2a3ba52d91a1a996b42bd779e65b1a3f..6db94cf48e09d6bec60ade1140bb078c33052595 100644 (file)
 #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 (file)
index 0000000..ffc0e64
--- /dev/null
@@ -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__ */
index 7693cbb53396be935f0f8155ec366735386ad5ec..968a9955484a384b639874edc8363835023fb95b 100644 (file)
@@ -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);