From 51c98f4f0ea6a11c7591da001f166c5f7e6e28d2 Mon Sep 17 00:00:00 2001 From: shredder Date: Fri, 11 Dec 2020 01:23:49 +0100 Subject: [PATCH] in case MAP_FILE is absent, which is the case on Haiku --- mm0-c/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mm0-c/main.c b/mm0-c/main.c index 0b187096..2972280b 100644 --- a/mm0-c/main.c +++ b/mm0-c/main.c @@ -13,6 +13,10 @@ #define ERR_READ 2 #define ERR_MMAP 3 +#ifndef MAP_FILE +#define MAP_FILE 0 +#endif + int main(int argc, char** argv) { if (sizeof(cmd32) != 5) { fprintf(stderr, "Static assert: __attribute__((packed)) fail\n");