Skip to content

Commit

Permalink
Fix NetBSD build.
Browse files Browse the repository at this point in the history
  • Loading branch information
oridb committed Jun 28, 2018
1 parent bd81ccd commit cef2d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sys/sys+netbsd-x64.myr
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ pkg sys =
const close : (fd:fd -> int64)
const creat : (path:byte[:], mode:int64 -> fd)
const unlink : (path:byte[:] -> int)
const rmdir : (path:byte[:] -> int)
const rmdir : (path:byte# -> int)
const read : (fd:fd, buf:byte[:] -> size)
const pread : (fd:fd, buf:byte[:], off : off -> size)
const readv : (fd:fd, iov:iovec[:] -> size)
Expand Down Expand Up @@ -908,6 +908,7 @@ pkg sys =
new : void#, newsz : size# \
-> int)

extern const cstring : (str : byte[:] -> byte#)
/* filled by start code */
extern var __cenvp : byte##
;;
Expand All @@ -918,7 +919,6 @@ the same as casting, but more concise than (writing : int64)
*/
generic a = {x : @t; -> (x : uint64)}

extern const cstring : (str : byte[:] -> byte#)
extern const alloca : (sz : size -> byte#)

/* process management */
Expand Down

0 comments on commit cef2d4e

Please sign in to comment.