summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/external/bsd/common/include/linux')
-rw-r--r--sys/external/bsd/common/include/linux/build_bug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/external/bsd/common/include/linux/build_bug.h b/sys/external/bsd/common/include/linux/build_bug.h
index 7f02708f1e2..a82ade3c032 100644
--- a/sys/external/bsd/common/include/linux/build_bug.h
+++ b/sys/external/bsd/common/include/linux/build_bug.h
@@ -1,4 +1,4 @@
-/* $NetBSD: build_bug.h,v 1.3 2021/12/19 11:14:26 riastradh Exp $ */
+/* $NetBSD: build_bug.h,v 1.4 2021/12/19 11:14:34 riastradh Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -41,6 +41,6 @@
#define BUILD_BUG() do {} while (0)
#define BUILD_BUG_ON_MSG(EXPR,MSG) BUILD_BUG_ON(EXPR)
#define BUILD_BUG_ON_INVALID(EXPR) ((void)sizeof((long)(EXPR)))
-#define BUILD_BUG_ON_ZERO(EXPR) 0
+#define BUILD_BUG_ON_ZERO(EXPR) ((int)(0*sizeof(int[(EXPR) ? -1 : 1])))
#endif /* _LINUX_BUILD_BUG_H_ */