1diff --git a/src/chartype.h b/src/chartype.h
2index c35825c..be5aac0 100644
3--- a/src/chartype.h
4+++ b/src/chartype.h
5@@ -44,7 +44,7 @@
6 * supports non-BMP code points without requiring UTF-16, but nothing
7 * seems to actually advertise this properly, despite Unicode 3.1 having
8 * been around since 2001... */
9-#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__))
10+#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__DragonFly__) && !defined(__FreeBSD__)
11 #ifndef __STDC_ISO_10646__
12 /* In many places it is assumed that the first 127 code points are ASCII
13 * compatible, so ensure wchar_t indeed does ISO 10646 and not some other