#include "apr_general.h" /* for signal stuff */
#include "apr_strings.h"
#include "apr_errno.h"
+#if (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 7)
+#include "apu_errno.h"
+#endif
#include "apr_thread_proc.h"
#include "apr_lib.h"
#include "apr_signal.h"
len = apr_snprintf(buf, buflen, "(os 0x%08x)",
status - APR_OS_START_SYSERR);
}
+#if (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 7)
+ if (status < APR_UTIL_START_STATUS) {
+ apr_strerror(status, buf + len, buflen - len);
+ }
+ else if (status < (APR_UTIL_START_STATUS + APR_UTIL_ERRSPACE_SIZE)) {
+ apu_strerror(status, buf + len, buflen - len);
+ }
+ else {
+ apr_strerror(status, buf + len, buflen - len);
+ }
+#else
apr_strerror(status, buf + len, buflen - len);
+#endif
len += strlen(buf + len);
return len;
}