fix some warnings

This commit is contained in:
kub 2024-09-05 22:00:30 +02:00
parent 697806c41d
commit 9fba90ac32
5 changed files with 34 additions and 9 deletions

View file

@ -17,11 +17,14 @@
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include <sys/stat.h>
#ifndef __MINGW32__
#include <sys/mman.h>
#endif
#include "../plat.h"
#include "../posix.h"
/* XXX: maybe unhardcode pagesize? */
#define HUGETLB_PAGESIZE (2 * 1024 * 1024)