From patchwork Sun Nov 18 02:03:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Gray X-Patchwork-Id: 999412 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jsg.id.au Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42yFdM41Fqz9s5c for ; Sun, 18 Nov 2018 13:04:02 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 798BAC223C7; Sun, 18 Nov 2018 02:03:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 86901C21D8E; Sun, 18 Nov 2018 02:03:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id ADF49C21D8E; Sun, 18 Nov 2018 02:03:50 +0000 (UTC) Received: from lechuck.jsg.id.au (jsg.id.au [210.15.216.215]) by lists.denx.de (Postfix) with ESMTPS id 6B8C2C21D9A for ; Sun, 18 Nov 2018 02:03:49 +0000 (UTC) Received: from largo.jsg.id.au (largo.jsg.id.au [192.168.1.43]) by lechuck.jsg.id.au (OpenSMTPD) with ESMTPS id 99b39bbe (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Sun, 18 Nov 2018 13:03:40 +1100 (AEDT) Received: from largo.jsg.id.au (localhost [127.0.0.1]) by largo.jsg.id.au (OpenSMTPD) with ESMTP id ea66c524; Sun, 18 Nov 2018 13:03:39 +1100 (AEDT) From: Jonathan Gray To: u-boot@lists.denx.de Date: Sun, 18 Nov 2018 13:03:39 +1100 Message-Id: <20181118020339.11983-1-jsg@jsg.id.au> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: xypron.glpk@gmx.de Subject: [U-Boot] [PATCH] tools/file2include: don't use malloc.h for malloc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" stdlib.h is the header for malloc since at least c89/c90. Previously this would fail to build on OpenBSD and fallback to the wrong header: In file included from u-boot/tools/file2include.c:21: u-boot/include/malloc.h:875:5: error: function-like macro 'CONFIG_IS_ENABLED' is not defined Signed-off-by: Jonathan Gray Reviewed-by: Heinrich Schuchardt --- tools/file2include.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/file2include.c b/tools/file2include.c index b98af30a72..775440cba9 100644 --- a/tools/file2include.c +++ b/tools/file2include.c @@ -18,7 +18,6 @@ #include #include #include -#include /* Size of the blocks written to the compressed file */ #define BLOCK_SIZE 8