summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-01-24 13:41:17 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-01-24 13:41:17 +0000
commitce81fb51072e2e4471e6e0f70dbde3343d93da8f (patch)
treefe52c1ae4598134b312a2d760f448a3c503ada48 /memory
parent15884a7d0f4f491bad32f5a800ca73b841393784 (diff)
downloadlibapr-ce81fb51072e2e4471e6e0f70dbde3343d93da8f.tar.gz
Never consider a commit when you have limited time...
Fix for when not in debug mode. Use the correct include file for getpid(). Comment the debug mode layout in the header. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62824 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index 5c205570c..192a1df71 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -56,6 +56,7 @@
#include "apr_private.h"
#include "apr_portable.h" /* for get_os_proc */
+#include "apr_thread_proc.h" /* for getpid */
#include "apr_strings.h"
#include "apr_general.h"
#include "apr_pools.h"
@@ -70,8 +71,6 @@
#include <stdlib.h> /* for malloc, free and abort */
#endif
-#include <unistd.h> /* for getpid */
-
/*
* Debug level
@@ -82,18 +81,6 @@
#define APR_POOL_DEBUG_LIFETIME 0x04
#define APR_POOL_DEBUG_OWNER 0x08
-/* When no level was specified, assume APR_POOL_DEBUG_GENERAL */
-#if defined(APR_POOL_DEBUG) && (APR_POOL_DEBUG != 0) && (APR_POOL_DEBUG - 0 == 0)
-#undef APR_POOL_DEBUG
-#define APR_POOL_DEBUG APR_POOL_DEBUG_GENERAL
-#endif
-
-/* We don't have debug level 0, assume APR_POOL_DEBUG_GENERAL. */
-#if APR_POOL_DEBUG == 0
-#undef APR_POOL_DEBUG
-#define APR_POOL_DEBUG APR_POOL_DEBUG_GENERAL
-#endif
-
/*
* Magic numbers