]> git.sesse.net Git - plocate/blobdiff - turbopfor-encode.h
Work around brokenness in FreeBSD mbtowc().
[plocate] / turbopfor-encode.h
index d149ae75ce85dd6b4a08392d652e991c488d22d0..4b2135f96509e45b89f42e20ce99c399c3088806 100644 (file)
@@ -15,6 +15,9 @@
 
 #include <algorithm>
 #include <assert.h>
+#ifdef HAS_ENDIAN_H
+#include <endian.h>
+#endif
 #include <limits.h>
 #include <stdint.h>
 #include <string.h>