From 41c0d92eabbaa5cf996b3bd6a82f78745c1864d5 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 19 Oct 2005 20:08:48 +0000 Subject: [PATCH] Modify code for clean build on non-bgl system. --- src/plugins/select/bluegene/bluegene.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/select/bluegene/bluegene.c b/src/plugins/select/bluegene/bluegene.c index f64164479b0..4ec59120d59 100644 --- a/src/plugins/select/bluegene/bluegene.c +++ b/src/plugins/select/bluegene/bluegene.c @@ -57,10 +57,14 @@ int partitions_are_created = 0; bgl_record_t *full_system_partition = NULL; #ifdef HAVE_BGL_FILES -static pthread_mutex_t freed_cnt_mutex = PTHREAD_MUTEX_INITIALIZER; -static int _update_bgl_record_state(List bgl_destroy_list); + static pthread_mutex_t freed_cnt_mutex = PTHREAD_MUTEX_INITIALIZER; + static int _update_bgl_record_state(List bgl_destroy_list); #else -int max_dim[PA_SYSTEM_DIMENSIONS] = { 0, 0, 0 }; +# if PA_SYSTEM_DIMENSIONS==3 + int max_dim[PA_SYSTEM_DIMENSIONS] = { 0, 0, 0 }; +# else + int max_dim[PA_SYSTEM_DIMENSIONS] = { 0 }; +# endif #endif /* some local functions */ -- GitLab