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:
parent
698461394c
commit
25e60944c6
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue