| author | |
| committer | |
| log | a20f3e3f02b24219f43c2da4568b794051e7d348 |
| tree | c16b2d6ef4dad8fdf28543b0e1a0ab23d15b2348 |
| parent | ab05766674b88dc7715d27f7d590d6832ee005ca |
| parent | 2b9cef1e0414f01e024af6f69a885faaeaa95f7c |
| signature |
Fix compile on Dragonfly4 files changed, 14 insertions(+), 2 deletions(-)
cmake/Findclang.cmake+2| ... | @@ -13,6 +13,7 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h | ... | @@ -13,6 +13,7 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h |
| 13 | /usr/lib/llvm-10/include | 13 | /usr/lib/llvm-10/include |
| 14 | /usr/lib/llvm-10.0/include | 14 | /usr/lib/llvm-10.0/include |
| 15 | /usr/local/llvm100/include | 15 | /usr/local/llvm100/include |
| 16 | /usr/local/llvm10/include | ||
| 16 | /mingw64/include) | 17 | /mingw64/include) |
| 17 | 18 | ||
| 18 | macro(FIND_AND_ADD_CLANG_LIB _libname_) | 19 | macro(FIND_AND_ADD_CLANG_LIB _libname_) |
| ... | @@ -24,6 +25,7 @@ macro(FIND_AND_ADD_CLANG_LIB _libname_) | ... | @@ -24,6 +25,7 @@ macro(FIND_AND_ADD_CLANG_LIB _libname_) |
| 24 | /usr/lib/llvm-10/lib | 25 | /usr/lib/llvm-10/lib |
| 25 | /usr/lib/llvm-10.0/lib | 26 | /usr/lib/llvm-10.0/lib |
| 26 | /usr/local/llvm100/lib | 27 | /usr/local/llvm100/lib |
| 28 | /usr/local/llvm10/lib | ||
| 27 | /mingw64/lib | 29 | /mingw64/lib |
| 28 | /c/msys64/mingw64/lib | 30 | /c/msys64/mingw64/lib |
| 29 | c:\\msys64\\mingw64\\lib) | 31 | c:\\msys64\\mingw64\\lib) |
cmake/Findlld.cmake+3| ... | @@ -10,12 +10,14 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h | ... | @@ -10,12 +10,14 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h |
| 10 | PATHS | 10 | PATHS |
| 11 | /usr/lib/llvm-10/include | 11 | /usr/lib/llvm-10/include |
| 12 | /usr/local/llvm100/include | 12 | /usr/local/llvm100/include |
| 13 | /usr/local/llvm10/include | ||
| 13 | /mingw64/include) | 14 | /mingw64/include) |
| 14 | 15 | ||
| 15 | find_library(LLD_LIBRARY NAMES lld-10.0 lld100 lld | 16 | find_library(LLD_LIBRARY NAMES lld-10.0 lld100 lld |
| 16 | PATHS | 17 | PATHS |
| 17 | /usr/lib/llvm-10/lib | 18 | /usr/lib/llvm-10/lib |
| 18 | /usr/local/llvm100/lib | 19 | /usr/local/llvm100/lib |
| 20 | /usr/local/llvm10/lib | ||
| 19 | ) | 21 | ) |
| 20 | if(EXISTS ${LLD_LIBRARY}) | 22 | if(EXISTS ${LLD_LIBRARY}) |
| 21 | set(LLD_LIBRARIES ${LLD_LIBRARY}) | 23 | set(LLD_LIBRARIES ${LLD_LIBRARY}) |
| ... | @@ -27,6 +29,7 @@ else() | ... | @@ -27,6 +29,7 @@ else() |
| 27 | ${LLD_LIBDIRS} | 29 | ${LLD_LIBDIRS} |
| 28 | /usr/lib/llvm-10/lib | 30 | /usr/lib/llvm-10/lib |
| 29 | /usr/local/llvm100/lib | 31 | /usr/local/llvm100/lib |
| 32 | /usr/local/llvm10/lib | ||
| 30 | /mingw64/lib | 33 | /mingw64/lib |
| 31 | /c/msys64/mingw64/lib | 34 | /c/msys64/mingw64/lib |
| 32 | c:/msys64/mingw64/lib) | 35 | c:/msys64/mingw64/lib) |
cmake/Findllvm.cmake+3-1| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | ||
| 10 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") | 10 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") |
| 11 | find_program(LLVM_CONFIG_EXE | 11 | find_program(LLVM_CONFIG_EXE |
| 12 | NAMES llvm-config-10 llvm-config-10.0 llvm-config100 llvm-config | 12 | NAMES llvm-config-10 llvm-config-10.0 llvm-config100 llvm-config10 llvm-config |
| 13 | PATHS | 13 | PATHS |
| 14 | "/mingw64/bin" | 14 | "/mingw64/bin" |
| 15 | "/c/msys64/mingw64/bin" | 15 | "/c/msys64/mingw64/bin" |
| ... | @@ -130,6 +130,7 @@ else() | ... | @@ -130,6 +130,7 @@ else() |
| 130 | /usr/lib/llvm-10/include | 130 | /usr/lib/llvm-10/include |
| 131 | /usr/lib/llvm-10.0/include | 131 | /usr/lib/llvm-10.0/include |
| 132 | /usr/local/llvm100/include | 132 | /usr/local/llvm100/include |
| 133 | /usr/local/llvm10/include | ||
| 133 | /mingw64/include) | 134 | /mingw64/include) |
| 134 | 135 | ||
| 135 | macro(FIND_AND_ADD_LLVM_LIB _libname_) | 136 | macro(FIND_AND_ADD_LLVM_LIB _libname_) |
| ... | @@ -141,6 +142,7 @@ else() | ... | @@ -141,6 +142,7 @@ else() |
| 141 | /usr/lib/llvm-10/lib | 142 | /usr/lib/llvm-10/lib |
| 142 | /usr/lib/llvm-10.0/lib | 143 | /usr/lib/llvm-10.0/lib |
| 143 | /usr/local/llvm100/lib | 144 | /usr/local/llvm100/lib |
| 145 | /usr/local/llvm10/lib | ||
| 144 | /mingw64/lib | 146 | /mingw64/lib |
| 145 | /c/msys64/mingw64/lib | 147 | /c/msys64/mingw64/lib |
| 146 | c:\\msys64\\mingw64\\lib) | 148 | c:\\msys64\\mingw64\\lib) |
lib/std/os/bits/dragonfly.zig+6-1| ... | @@ -244,6 +244,12 @@ pub const KERN_MAXID = 37; | ... | @@ -244,6 +244,12 @@ pub const KERN_MAXID = 37; |
| 244 | 244 | ||
| 245 | pub const HOST_NAME_MAX = 255; | 245 | pub const HOST_NAME_MAX = 255; |
| 246 | 246 | ||
| 247 | // access function | ||
| 248 | pub const F_OK = 0; // test for existence of file | ||
| 249 | pub const X_OK = 1; // test for execute or search permission | ||
| 250 | pub const W_OK = 2; // test for write permission | ||
| 251 | pub const R_OK = 4; // test for read permission | ||
| 252 | |||
| 247 | pub const O_RDONLY = 0; | 253 | pub const O_RDONLY = 0; |
| 248 | pub const O_NDELAY = O_NONBLOCK; | 254 | pub const O_NDELAY = O_NONBLOCK; |
| 249 | pub const O_WRONLY = 1; | 255 | pub const O_WRONLY = 1; |
| ... | @@ -277,7 +283,6 @@ pub const SEEK_END = 2; | ... | @@ -277,7 +283,6 @@ pub const SEEK_END = 2; |
| 277 | pub const SEEK_DATA = 3; | 283 | pub const SEEK_DATA = 3; |
| 278 | pub const SEEK_HOLE = 4; | 284 | pub const SEEK_HOLE = 4; |
| 279 | 285 | ||
| 280 | pub const F_OK = 0; | ||
| 281 | pub const F_ULOCK = 0; | 286 | pub const F_ULOCK = 0; |
| 282 | pub const F_LOCK = 1; | 287 | pub const F_LOCK = 1; |
| 283 | pub const F_TLOCK = 2; | 288 | pub const F_TLOCK = 2; |