From c060dd51dc9a6b2e096718b6bb0021a997bcb14e Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Sat, 16 Dec 2017 22:42:41 +0200 Subject: [PATCH] libgpgme: fix build on MIPS with older kernel headers MIPS N64 ABI has been missing getdents64 wire up until kernel version 3.10. Disable use of getdents on older kernels. Fixes: http://autobuild.buildroot.net/results/961/9619062ce6642ae4121d7debb3b4c632c88723d5/ Cc: Vicente Olivert Riera Cc: Philipp Claves Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- package/libgpgme/libgpgme.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/libgpgme/libgpgme.mk b/package/libgpgme/libgpgme.mk index 31f25b4645..5c46c7c561 100644 --- a/package/libgpgme/libgpgme.mk +++ b/package/libgpgme/libgpgme.mk @@ -35,4 +35,9 @@ LIBGPGME_CONF_ENV += LIBS="-largp" ac_cv_type_error_t=yes LIBGPGME_DEPENDENCIES += argp-standalone endif +# MIPS N64 (re)introduced getdents64 in kernel version 3.10 +ifeq ($(BR2_MIPS_NABI64)x$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10),yx) +LIBGPGME_CONF_OPTS += --disable-linux-getdents +endif + $(eval $(autotools-package)) -- 2.30.2