Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Basic NetBSD support needed to build GDC #2472

Merged
merged 1 commit into from
Jan 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/core/stdc/assert_.d
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ else version (FreeBSD)
*/
void __assert(const(char)* exp, const(char)* file, uint line);
}
else version (NetBSD)
{
/***
* Assert failure function in the NetBSD C library.
*/
void __assert(const(char)* file, int line, const(char)* exp);
}
else version (DragonFlyBSD)
{
/***
Expand Down
9 changes: 9 additions & 0 deletions src/core/stdc/wchar_.d
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ version (CRuntime_Glibc)
___value __value;
}
}
else version (NetBSD)
{
union __mbstate_t
{
int64_t __mbstateL;
char[128] __mbstate8;
}
alias mbstate_t = __mbstate_t;
}
else version (OpenBSD)
{
union __mbstate_t
Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/netbsd/dlfcn.d
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static if (__BSD_VISIBLE)
//void* fdlopen(int, int);
int dladdr(const(void)*, Dl_info*);
//dlfunc_t dlfunc(void*, const(char)*);
//int dlinfo(void*, int, void*);
int dlinfo(void*, int, void*);
/+void dllockinit(void* _context,
void* function(void* _context) _lock_create,
void function(void* _lock) _rlock_acquire,
Expand Down