Mercurial > pub > dyncall > dyncall
changeset 617:6a34dcb2bbd7
- test/syscalls: build fix for minix
author | Tassilo Philipp |
---|---|
date | Sun, 02 Oct 2022 16:45:06 +0200 |
parents | 5d999f5c13d1 |
children | f1810b5dbb3b |
files | test/syscall/syscall.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/syscall/syscall.c Sun Oct 02 13:58:33 2022 +0200 +++ b/test/syscall/syscall.c Sun Oct 02 16:45:06 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2011-2021 Daniel Adler <dadler@uni-goettingen.de>, + Copyright (c) 2011-2022 Daniel Adler <dadler@uni-goettingen.de>, Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any @@ -24,7 +24,12 @@ */ #include "dyncall.h" -#include <sys/syscall.h> +#if defined(DC__OS_Minix) +# include <minix/callnr.h> +# define SYS_write WRITE +#elif defined(DC_UNIX) && !defined(DC__OS_BeOS) +# include <sys/syscall.h> +#endif DCCallVM* callvm;