summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Close <Benjamin.Close@clearchain.com>2009-02-09 16:33:59 +1030
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-02-09 17:11:34 -0800
commit300893171ca7ad684472e5961a7b2ba0eb291f6b (patch)
tree83e2ce84027ef8479aaddd460bf4e9bb88038e44
parent389e01fb51ba2d708015e27d8fc17c88a0e55802 (diff)
Revert "Fix "XXX declared 'static' but not defined""
This reverts commit d192bac409fe5ef99fa9fb9b5a0d5f656f0f1412. When transport.c is directly include (as in the case of libICE:icetrans.c:32) Xtranssock.c must be included before Xtransutil.c in order for the socket structures to be included. Including Xtransutil.c after Xtranssock.c requires is_number and trans_mkdir to be defined. This reintroduces the warning until a cleaner solution can be found but fixes the build. Found by: Tinderbox Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
-rw-r--r--Xtransint.h12
-rw-r--r--transport.c2
2 files changed, 13 insertions, 1 deletions
diff --git a/Xtransint.h b/Xtransint.h
index e1a95a2..623cdef 100644
--- a/Xtransint.h
+++ b/Xtransint.h
@@ -345,6 +345,18 @@ static int TRANS(WriteV)(
#endif /* CRAY || WIN32 || __sxg__ */
+
+static int is_numeric (
+ char * /* str */
+);
+
+#ifdef TRANS_SERVER
+static int trans_mkdir (
+ char *, /* path */
+ int /* mode */
+);
+#endif
+
/*
* Some XTRANSDEBUG stuff
*/
diff --git a/transport.c b/transport.c
index baf5bfd..5131d99 100644
--- a/transport.c
+++ b/transport.c
@@ -59,7 +59,6 @@ from The Open Group.
#endif
#include "Xtransint.h"
-#include "Xtransutil.c"
#ifdef LOCALCONN
#include "Xtranslcl.c"
@@ -71,3 +70,4 @@ from The Open Group.
#include "Xtranstli.c"
#endif
#include "Xtrans.c"
+#include "Xtransutil.c"