dreid 2003/07/06 03:34:56
Modified: misc/unix errorcodes.c
Log:
Silence a compiler warning on BeOS.
Revision Changes Path
1.55 +9 -0 apr/misc/unix/errorcodes.c
Index: errorcodes.c
===================================================================
RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- errorcodes.c 24 Feb 2003 20:32:02 -0000 1.54
+++ errorcodes.c 6 Jul 2003 10:34:55 -0000 1.55
@@ -374,6 +374,15 @@
}
#elif defined(HAVE_STRERROR_R)
/* glibc style */
+
+/* BeOS has the function available, but it doesn't provide
+ * the prototype publically (doh!), so to avoid a build warning
+ * we add a suitable prototype here.
+ */
+#if defined(BEOS)
+const char *strerror_r(apr_status_t, char *, apr_size_t);
+#endif
+
static char *native_strerror(apr_status_t statcode, char *buf,
apr_size_t bufsize)
{