From 5cca68eec06f3bdba8957dff66cc44ebd76ed7fa Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 30 Jul 2014 11:17:27 -0700 Subject: [PATCH] Avoid error on duplicate definition of bool This was generated in the course of buildign test7.17, that calls libslurm.o functions directly. --- src/common/macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/macros.h b/src/common/macros.h index f8c1e90c6f6..0b83726c4eb 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -51,7 +51,9 @@ #if HAVE_STDBOOL_H # include <stdbool.h> #else -typedef enum {false, true} bool; +# ifndef bool + typedef enum {false, true} bool; +# endif #endif /* !HAVE_STDBOOL_H */ #if HAVE_PTHREAD_H -- GitLab