Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E99C0C43381 for ; Mon, 1 Apr 2019 18:45:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA15A2086C for ; Mon, 1 Apr 2019 18:45:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728872AbfDASpY (ORCPT ); Mon, 1 Apr 2019 14:45:24 -0400 Received: from mga18.intel.com ([134.134.136.126]:36278 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728799AbfDASpY (ORCPT ); Mon, 1 Apr 2019 14:45:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 11:45:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,297,1549958400"; d="scan'208";a="312246340" Received: from bgix-dell-lap.sea.intel.com ([10.251.31.196]) by orsmga005.jf.intel.com with ESMTP; 01 Apr 2019 11:45:22 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, brian.gix@intel.com Subject: [PATCH BlueZ v2 1/1] build: Check if explicit_bzero is missing Date: Mon, 1 Apr 2019 11:45:18 -0700 Message-Id: <20190401184518.1816-1-brian.gix@intel.com> X-Mailer: git-send-email 2.14.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This check gets around the redefinition of explicit_bzero in ELL In file included from ell/random.c:34:0: ell/missing.h:59:20: error: static declaration of ‘explicit_bzero’ follows non-static declaration static inline void explicit_bzero(void *s, size_t n) ^~~~~~~~~~~~~~ In file included from ./ell/util.h:26:0, from ell/private.h:26, from ell/random.c:33: /usr/include/string.h:435:13: note: previous declaration of ‘explicit_bzero’ was here extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1)); ^~~~~~~~~~~~~~ --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index ae64ddc0f..0afe1e6db 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,8 @@ MISC_FLAGS AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads], [enable threading support]), [enable_threads=${enableval}]) +AC_CHECK_FUNCS(explicit_bzero) + AC_CHECK_FUNC(signalfd, dummy=yes, AC_MSG_ERROR(signalfd support is required)) -- 2.14.5