~itachi-san/telegram-desktop/breakpad-lss

Viewing all changes in revision 53.

  • Committer: Mike Frysinger
  • Author(s): Michael Forney
  • Date: 2020-01-23 08:37:16 UTC
  • Revision ID: git-v1:f70e2f1641e280e777edfdad7f73a2cfa38139c7
Avoid conflict with pread64/pwrite64 defined by libc

musl libc defines these to pread and pwrite respectively, since its
off_t is always 64-bit. This causes unintended macro replacement
when defining the pread64/pwrite64 wrappers.

To prevent this, save the macro definitions at the start of the
header and restore them at the end. This is what is already done
to work around the same issue on Android NDK.

Bug: linux-syscall-support:23
Change-Id: I0a91ba83fb172818a80a3584302f2c97966ec2e0
Reviewed-on: https://chromium-review.googlesource.com/c/linux-syscall-support/+/2015819
Reviewed-by: Mike Frysinger <vapier@chromium.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: