diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2003-07-06 10:34:55 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2003-07-06 10:34:55 +0000 |
commit | 0bb378642c02a68124fd4686ea54a9f8102849b7 (patch) | |
tree | e1648b2224ee21794f96c9efdd2f5bc38da0d0c2 /misc/unix/errorcodes.c | |
parent | b2644254cd310e79ad0efd5d8c91167f02e18f57 (diff) | |
download | libapr-0bb378642c02a68124fd4686ea54a9f8102849b7.tar.gz |
Silence a compiler warning on BeOS.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc/unix/errorcodes.c')
-rw-r--r-- | misc/unix/errorcodes.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/unix/errorcodes.c b/misc/unix/errorcodes.c index d4820a184..cc199f5ee 100644 --- a/misc/unix/errorcodes.c +++ b/misc/unix/errorcodes.c @@ -374,6 +374,15 @@ static char *native_strerror(apr_status_t statcode, char *buf, } #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) { |