From 103af58f59c0cb69f1872cbebeb4213d4020e4b9 Mon Sep 17 00:00:00 2001 From: Matthew D Fleming Date: Mon, 12 Dec 2011 18:43:24 +0000 Subject: Do not define bool/true/false if the symbols already exist. MFC after: 2 weeks Sponsored by: Isilon Systems, LLC --- sys/dev/tws/tws.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/tws') diff --git a/sys/dev/tws/tws.h b/sys/dev/tws/tws.h index cf9f7275f523..6d0f6ad01332 100644 --- a/sys/dev/tws/tws.h +++ b/sys/dev/tws/tws.h @@ -205,7 +205,11 @@ struct tws_init_connect_info { /* ------------ boolean types ------------------- */ +#ifndef __bool_true_false_are_defined typedef enum _boolean { false, true } boolean; +#else +#define boolean bool +#endif enum err { SUCCESS, FAILURE }; /* ----------- per instance data ---------------- */ -- cgit v1.3