aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tws/tws.h
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2011-12-12 18:43:24 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2011-12-12 18:43:24 +0000
commit103af58f59c0cb69f1872cbebeb4213d4020e4b9 (patch)
treea27d87407eb9eb2b783545e6822eca1cb5274b39 /sys/dev/tws/tws.h
parente5587e2e031d8fe6255bf3c4eaff74c23fb62dc3 (diff)
downloadsrc-103af58f59c0cb69f1872cbebeb4213d4020e4b9.tar.gz
src-103af58f59c0cb69f1872cbebeb4213d4020e4b9.zip
Do not define bool/true/false if the symbols already exist.
MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
Notes
Notes: svn path=/head/; revision=228443
Diffstat (limited to 'sys/dev/tws/tws.h')
-rw-r--r--sys/dev/tws/tws.h4
1 files changed, 4 insertions, 0 deletions
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 ---------------- */