summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2017-04-05 22:51:33 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2017-04-05 22:51:33 +0000
commit9a8874bf7f119396c15dcbbab203967359f3aebd (patch)
tree24c33f714344ad63c978d9339bc8f3fd628a05c9 /locks
parent125f275e522e3b6028c30c56be1f411787646eb0 (diff)
downloadlibapr-9a8874bf7f119396c15dcbbab203967359f3aebd.tar.gz
Avoid a compiler warning by using system's errno.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1790331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/locks/unix/misc.c b/locks/unix/misc.c
index d7018fc3a..8b19882ea 100644
--- a/locks/unix/misc.c
+++ b/locks/unix/misc.c
@@ -19,6 +19,8 @@
#define APR_WANT_MEMFUNC
#include "apr_want.h"
+#include <errno.h>
+
#if APR_HAS_THREADS
#if APR_HAS_SYSVSEM_SERIALIZE
#if !HAVE_SEMTIMEDOP
@@ -27,7 +29,6 @@
#endif
#define SLEEP_TIME_NS 10000000
#define NANOSECS_PER_SEC 1000000000
-extern int errno;
#ifndef HAVE_PTHREAD_MUTEX_TIMEDLOCK
extern int pthread_mutex_timedlock(pthread_mutex_t * mutex,