aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/include/ei.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-01-28 14:39:17 +0100
committerRickard Green <[email protected]>2019-01-29 16:56:48 +0100
commitd443097778e22c51173aaa22b71303b05a89cf84 (patch)
treeeb9f6dde2a685f476ca43c2740bd3660f30899a1 /lib/erl_interface/include/ei.h
parenteaeec753c035c2214be2930290a0a6de411566b0 (diff)
downloadotp-d443097778e22c51173aaa22b71303b05a89cf84.tar.gz
otp-d443097778e22c51173aaa22b71303b05a89cf84.tar.bz2
otp-d443097778e22c51173aaa22b71303b05a89cf84.zip
Fix build of erl_interface on BSD
Diffstat (limited to 'lib/erl_interface/include/ei.h')
-rw-r--r--lib/erl_interface/include/ei.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/erl_interface/include/ei.h b/lib/erl_interface/include/ei.h
index 92674571e2..dffaf4f27c 100644
--- a/lib/erl_interface/include/ei.h
+++ b/lib/erl_interface/include/ei.h
@@ -36,6 +36,8 @@
#include <windows.h>
#include <winbase.h>
typedef LONG_PTR ssize_t; /* Sigh... */
+#else
+#include <sys/types.h> /* ssize_t */
#endif
#include <stdio.h> /* Need type FILE */