mirror of
https://github.com/linux-msm/qrtr.git
synced 2026-01-18 01:30:08 +01:00
Definition of AF_QIPCRTR was introduced in glibc in the following commit and is only available since glibc 2.25 or later. https://sourceware.org/git/?p=glibc.git;a=commit;h=acaff9b658720e4c887f4e44e6f28962d6f372d3 This patch modifies libqrtr.h to define AF_QIPCRTR if it isn't defined in libc header, which allows compilation of libqrtr on a system with an older version of glibc. The compiled libqrtr can still be used on a system with kernel 4.7 or later with the QIPCRTR support. Signed-off-by: Ben Chan <benchan@chromium.org>