comparison test/syscall/syscall.c @ 617:6a34dcb2bbd7

- test/syscalls: build fix for minix
author Tassilo Philipp
date Sun, 02 Oct 2022 16:45:06 +0200
parents dfc2e6ee8782
children
comparison
equal deleted inserted replaced
616:5d999f5c13d1 617:6a34dcb2bbd7
4 Library: test 4 Library: test
5 File: test/syscall/syscall.c 5 File: test/syscall/syscall.c
6 Description: 6 Description:
7 License: 7 License:
8 8
9 Copyright (c) 2011-2021 Daniel Adler <dadler@uni-goettingen.de>, 9 Copyright (c) 2011-2022 Daniel Adler <dadler@uni-goettingen.de>,
10 Tassilo Philipp <tphilipp@potion-studios.com> 10 Tassilo Philipp <tphilipp@potion-studios.com>
11 11
12 Permission to use, copy, modify, and distribute this software for any 12 Permission to use, copy, modify, and distribute this software for any
13 purpose with or without fee is hereby granted, provided that the above 13 purpose with or without fee is hereby granted, provided that the above
14 copyright notice and this permission notice appear in all copies. 14 copyright notice and this permission notice appear in all copies.
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 23
24 */ 24 */
25 25
26 #include "dyncall.h" 26 #include "dyncall.h"
27 #include <sys/syscall.h> 27 #if defined(DC__OS_Minix)
28 # include <minix/callnr.h>
29 # define SYS_write WRITE
30 #elif defined(DC_UNIX) && !defined(DC__OS_BeOS)
31 # include <sys/syscall.h>
32 #endif
28 DCCallVM* callvm; 33 DCCallVM* callvm;
29 34
30 35
31 int syscall_write(int fd, char* buf, size_t len) 36 int syscall_write(int fd, char* buf, size_t len)
32 { 37 {