ref: ceb1f19afffc8a17eb132a5ee2f8ff58dd5803b1
parent: 741512775989f2d3a9497167030742797c43e63a
author: Sebastian Krzyszkowiak <dos@dosowisko.net>
date: Wed Sep 5 22:01:19 EDT 2018
Alias dumb_off_t to int64_t when compiling under Emscripten
--- a/include/dumb.h
+++ b/include/dumb.h
@@ -114,6 +114,9 @@
*/
#include <sys/types.h>
typedef off64_t dumb_off_t;
+#elif defined __EMSCRIPTEN__
+#include <sys/types.h>
+typedef int64_t dumb_off_t;
#elif _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 500
#include <sys/types.h>
typedef off_t dumb_off_t;