mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fast.v: freebsd fixes
This commit is contained in:
parent
930b95f76c
commit
ece5fa183c
@ -118,7 +118,10 @@ fn test_socket_write_fail_without_panic() {
|
||||
$if solaris {
|
||||
return
|
||||
}
|
||||
// TODO: fix segfaulting on Solaris
|
||||
$if freebsd {
|
||||
return
|
||||
}
|
||||
// TODO: fix segfaulting on Solaris and FreeBSD
|
||||
for i := 0; i < 3; i++ {
|
||||
socket.write_string(message2) or {
|
||||
println('write to a socket without a recipient should produce an option fail: $err | $message2')
|
||||
|
@ -416,8 +416,13 @@ pub fn (mut g Gen) init() {
|
||||
#endif'
|
||||
g.cheaders.writeln(tcc_undef_has_include)
|
||||
g.includes.writeln(tcc_undef_has_include)
|
||||
g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'The C compiler can not find <inttypes.h>. Please install build-essentials')) // int64_t etc
|
||||
g.cheaders.writeln(get_guarded_include_text('<stddef.h>', 'The C compiler can not find <stddef.h>. Please install build-essentials')) // size_t, ptrdiff_t
|
||||
if g.pref.os == .freebsd {
|
||||
g.cheaders.writeln('#include <inttypes.h>')
|
||||
g.cheaders.writeln('#include <stddef.h>')
|
||||
} else {
|
||||
g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'The C compiler can not find <inttypes.h>. Please install build-essentials')) // int64_t etc
|
||||
g.cheaders.writeln(get_guarded_include_text('<stddef.h>', 'The C compiler can not find <stddef.h>. Please install build-essentials')) // size_t, ptrdiff_t
|
||||
}
|
||||
g.cheaders.writeln(c_builtin_types)
|
||||
if g.pref.is_bare {
|
||||
g.cheaders.writeln(c_bare_headers)
|
||||
|
Loading…
Reference in New Issue
Block a user