| ... | ... | @@ -4,6 +4,8 @@ const symbol = @import("../c.zig").symbol; |
| 4 | 4 | const c = std.c; |
| 5 | 5 | |
| 6 | 6 | comptime { |
| 7 | symbol(&strndup, "strndup"); |
| 8 | |
| 7 | 9 | if (builtin.target.isMuslLibC() or builtin.target.isWasiLibC()) { |
| 8 | 10 | // memcpy implemented in compiler_rt |
| 9 | 11 | // memmove implemented in compiler_rt |
| ... | ... | @@ -26,7 +28,6 @@ comptime { |
| 26 | 28 | symbol(&strstr, "strstr"); |
| 27 | 29 | symbol(&strtok, "strtok"); |
| 28 | 30 | symbol(&strdup, "strdup"); |
| 29 | | symbol(&strndup, "strndup"); |
| 30 | 31 | // strlen is in compiler_rt |
| 31 | 32 | |
| 32 | 33 | symbol(&strtok_r, "strtok_r"); |