1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00

python3Packages.python-engineio: fix build w/glibc-2.32

Also had to wrap `__nss_files_fopen` in `libredirect` as this is the way
now `nss` uses to retrieve file-databases[1].

[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=299210c1fa67e2dfb564475986fce11cd33db9ad;hp=469c03907b116c37c98d8ad7a9edac2bdbf3e934
This commit is contained in:
Maximilian Bosch 2020-08-22 23:34:20 +02:00
parent 698461394c
commit 25e60944c6
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -121,6 +121,13 @@ FILE * fopen(const char * path, const char * mode)
return fopen_real(rewrite(path, buf), mode);
}
FILE * __nss_files_fopen(const char * path)
{
FILE * (*__nss_files_fopen_real) (const char *) = dlsym(RTLD_NEXT, "__nss_files_fopen");
char buf[PATH_MAX];
return __nss_files_fopen_real(rewrite(path, buf));
}
FILE * fopen64(const char * path, const char * mode)
{
FILE * (*fopen64_real) (const char *, const char *) = dlsym(RTLD_NEXT, "fopen64");