From 4d2424f811b74a292050abc31853785f9917ba50 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Mon, 14 Jan 2002 22:36:03 +0000 Subject: Added APR_HAS_SHARED_MEMORY to a section of code where it was missing, for those of us that don't have shared memory support. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92854 13f79535-47bb-0310-9956-ffa450edef68 --- server/scoreboard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server/scoreboard.c') diff --git a/server/scoreboard.c b/server/scoreboard.c index d196e56403..1365dfccce 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -230,12 +230,15 @@ apr_status_t ap_cleanup_scoreboard(void *d) { void ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e sb_type) { int running_gen = 0; +#if APR_HAS_SHARED_MEMORY apr_status_t rv; +#endif if (ap_scoreboard_image) running_gen = ap_scoreboard_image->global->running_generation; if (ap_scoreboard_image == NULL) { ap_calc_scoreboard_size(); +#if APR_HAS_SHARED_MEMORY if (sb_type == SB_SHARED) { void *sb_shared; rv = open_scoreboard(p); @@ -253,7 +256,9 @@ void ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e sb_type) } ap_init_scoreboard(sb_shared); } - else { + else +#endif + { /* A simple malloc will suffice */ void *sb_mem = calloc(1, scoreboard_size); if (sb_mem == NULL) { -- cgit v1.2.3