Fixed clang build for windows.
Fixed: C:\Users\C182~1\AppData\Local\Temp\ccb5oFDP.o: In function `os__fork': C:/Users/─рэ //.vlang//v2.exe.c:4831: undefined reference to `fork' C:\Users\C182~1\AppData\Local\Temp\ccb5oFDP.o: In function `os__wait': C:/Users/─рэ //.vlang//v2.exe.c:4840: undefined reference to `wait' collect2.exe: error: ld returned 1 exit statuspull/1125/head
parent
436d7592c7
commit
82ed0156c5
|
@ -653,13 +653,17 @@ pub fn signal(signum int, handler voidptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fork() int {
|
pub fn fork() int {
|
||||||
|
$if !windows {
|
||||||
pid := C.fork()
|
pid := C.fork()
|
||||||
return pid
|
return pid
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn wait() int {
|
pub fn wait() int {
|
||||||
|
$if !windows {
|
||||||
pid := C.wait(0)
|
pid := C.wait(0)
|
||||||
return pid
|
return pid
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn file_last_mod_unix(path string) int {
|
pub fn file_last_mod_unix(path string) int {
|
||||||
|
|
Loading…
Reference in New Issue