summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr.hw6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/apr.hw b/include/apr.hw
index 127b49bce..fec7d2d94 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -358,13 +358,19 @@ typedef int apr_socklen_t;
/* XXX These simply don't belong here, perhaps in apr_portable.h
* based on some APR_HAVE_PID/GID/UID?
*/
+#ifndef __GNUC__
typedef int pid_t;
+#endif
typedef int uid_t;
typedef int gid_t;
/* Mechanisms to properly type numeric literals */
+#ifndef __GNUC__
#define APR_INT64_C(val) (val##i64)
+#else
+#define APR_INT64_C(val) (val##LL)
+#endif
#if APR_HAVE_IPV6