summaryrefslogtreecommitdiffstats
path: root/src/pinyin_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin_internal.h')
-rw-r--r--src/pinyin_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index f1b0309..342ea6a 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -49,4 +49,11 @@
using namespace pinyin;
+/* the following fixes build on Debian GNU/kFreeBSD */
+#include <errno.h>
+#ifndef ENODATA
+#define ENODATA ENOENT
+#endif
+
+
#endif