From patchwork Fri Dec 2 13:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 17938 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id A4C48BDE6B for ; Fri, 2 Dec 2022 13:27:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2A86763336; Fri, 2 Dec 2022 14:27:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669987635; bh=2lXcHSmNsL4ACnngr6hFv7GfYvaz4mQVw3QMU0pKzvw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=nj8tuDdE/d9BrfdntdusqNuoSsBUDkNeZBoI/32mswQxaJoL73TstTTbHWVOm8QRV 4iG8JvAz/hE8+ObOTtzuYz1GTttDn+V+Mp3nSD6YCmd93cnkQFyFIcEYf+ZunirO+f cFSa1qheBQ5Z43jXRW04QPCnYEvuTGKX0MInMVVM4KnWy8L2buNHaKL9qI0b+50GRb gpys7KA532NVZiB4HpHL6Y4l8ANcG6+rdzN2u6lSCQjTKqe26bPrK9irNGpXUKE+05 O172cJEI2zs6hhmxDC7MNUgxnEpyVHCJHinrsEY51NOAnNU7nJLQktSpT/lF06n0bR AnPmQwCJPaM7A== Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 83C7060483 for ; Fri, 2 Dec 2022 14:27:14 +0100 (CET) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id C5399240005; Fri, 2 Dec 2022 13:27:13 +0000 (UTC) To: libcamera-devel@lists.libcamera.org Date: Fri, 2 Dec 2022 14:27:06 +0100 Message-Id: <20221202132706.15675-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] utils: ipu3: Include libgen.h for basename() X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The "basename" function from the standard C library is defined in the libgen.h header. Include it to avoid errors triggered by -Wimplicit-function-declaration ../utils/ipu3/ipu3-pack.c:21:47: error: implicit declaration of function 'basename' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Signed-off-by: Jacopo Mondi Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- utils/ipu3/ipu3-pack.c | 1 + utils/ipu3/ipu3-unpack.c | 1 + 2 files changed, 2 insertions(+) diff --git a/utils/ipu3/ipu3-pack.c b/utils/ipu3/ipu3-pack.c index decbfc6c397a..27af44068956 100644 --- a/utils/ipu3/ipu3-pack.c +++ b/utils/ipu3/ipu3-pack.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/utils/ipu3/ipu3-unpack.c b/utils/ipu3/ipu3-unpack.c index 9d2c1200d932..aa67e0b0ecf5 100644 --- a/utils/ipu3/ipu3-unpack.c +++ b/utils/ipu3/ipu3-unpack.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include