8d1e1c9fa6
On linux_aarch64 `res_search` is `__res_search@GLIBC_2.17`, which is different from the x86_64 counterpart `__res_search@GLIBC_2.2.5`. Also fix tests.
14 lines
328 B
C
14 lines
328 B
C
// This file tests that problematic functions (glibc-hacks) work.
|
|
// Also see https://github.com/ziglang/zig/issues/9485
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <resolv.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
printf("Your lucky numbers are %p and %p\n", fcntl, res_search);
|
|
return 0;
|
|
}
|