summaryrefslogtreecommitdiffstats
path: root/otherlibs/bigarray/mmap_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/bigarray/mmap_win32.c')
-rw-r--r--otherlibs/bigarray/mmap_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/bigarray/mmap_win32.c b/otherlibs/bigarray/mmap_win32.c
index 82735cb9e..a3701611d 100644
--- a/otherlibs/bigarray/mmap_win32.c
+++ b/otherlibs/bigarray/mmap_win32.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <string.h>
#include "bigarray.h"
+#include "alloc.h"
#include "custom.h"
#include "fail.h"
#include "mlvalues.h"
@@ -110,6 +111,6 @@ static void bigarray_sys_error(void)
buffer,
sizeof(buffer),
NULL))
- sprintf(buffer, "Unknown error %d\n", errnum);
+ sprintf(buffer, "Unknown error %ld\n", errnum);
raise_sys_error(copy_string(buffer));
}