| author | |
| committer | |
| log | fb0cef8522968af6a15fe953b8f259f3f0a7b37c |
| tree | 32da6458502abbe819e308bb564a4c6e15c6992a |
| parent | fba81cd6062df8a49f1ec7559bdaf8d9081fcd43 |
1 files changed, 3 insertions(+), 1 deletions(-)
lib/std/os/linux.zig+3-1| ... | ... | @@ -167,7 +167,9 @@ fn getauxvalImpl(index: usize) callconv(.C) usize { |
| 167 | 167 | return 0; |
| 168 | 168 | } |
| 169 | 169 | comptime { |
| 170 | @export(getauxvalImpl, .{ .name = "getauxval", .linkage = .Weak }); | |
| 170 | if (!builtin.link_libc) { | |
| 171 | @export(getauxvalImpl, .{ .name = "getauxval", .linkage = .Weak }); | |
| 172 | } | |
| 171 | 173 | } |
| 172 | 174 | |
| 173 | 175 | // Some architectures (and some syscalls) require 64bit parameters to be passed |