summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/nasty_macros.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support/nasty_macros.hpp')
-rw-r--r--libcxx/test/support/nasty_macros.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/support/nasty_macros.hpp b/libcxx/test/support/nasty_macros.hpp
index 76d8ab0e720..97a17bb689a 100644
--- a/libcxx/test/support/nasty_macros.hpp
+++ b/libcxx/test/support/nasty_macros.hpp
@@ -22,7 +22,11 @@
#define _J NASTY_MACRO
#define _K NASTY_MACRO
#define _L NASTY_MACRO
+// Because FreeBSD uses _M in its <sys/types.h>, and it is hard to avoid
+// including that header, only define _M for other operating systems.
+#ifndef __FreeBSD__
#define _M NASTY_MACRO
+#endif
#define _N NASTY_MACRO
#define _O NASTY_MACRO
#define _P NASTY_MACRO
OpenPOWER on IntegriCloud