mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
sysroot: Fix fcntl compat in glibc 2.28
This commit is contained in:
parent
1a802cfb56
commit
c9a3d4efa4
@ -327,6 +327,14 @@ HacksAndPatchesCommon() {
|
||||
nm -D --defined-only --with-symbol-versions "${libc_so}" | \
|
||||
"${SCRIPT_DIR}/find_incompatible_glibc_symbols.py" >> "${glob_h}"
|
||||
|
||||
# fcntl64() was introduced in glibc 2.28. Make sure to use fcntl() instead.
|
||||
local fcntl_h="${INSTALL_ROOT}/usr/include/fcntl.h"
|
||||
sed -i '{N; s/#ifndef \(__USE_FILE_OFFSET64\nextern int fcntl\)/#ifdef \1/}' \
|
||||
"${fcntl_h}"
|
||||
# On i386, fcntl() was updated in glibc 2.28.
|
||||
nm -D --defined-only --with-symbol-versions "${libc_so}" | \
|
||||
"${SCRIPT_DIR}/find_incompatible_glibc_symbols.py" >> "${fcntl_h}"
|
||||
|
||||
# This is for chrome's ./build/linux/pkg-config-wrapper
|
||||
# which overwrites PKG_CONFIG_LIBDIR internally
|
||||
SubBanner "Move pkgconfig scripts"
|
||||
|
Loading…
Reference in New Issue
Block a user