Message ID | 20230915091457.3206927-1-dominique.martinet@atmark-techno.com |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBCWIVBV7SUGRBHGBSCUAMGQEF7LIZLI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=LZ/mTP0B; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::13f; helo=mail-il1-x13f.google.com; envelope-from=swupdate+bncbcwivbv7sugrbhgbscuamgqef7lizli@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-il1-x13f.google.com (mail-il1-x13f.google.com [IPv6:2607:f8b0:4864:20::13f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rn7nY3nLxz1ygG for <incoming@patchwork.ozlabs.org>; Fri, 15 Sep 2023 19:15:12 +1000 (AEST) Received: by mail-il1-x13f.google.com with SMTP id e9e14a558f8ab-34e21aae2acsf13104555ab.3 for <incoming@patchwork.ozlabs.org>; Fri, 15 Sep 2023 02:15:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694769309; cv=pass; d=google.com; s=arc-20160816; b=AZ1bpZLsDpa692NUxbC5bhEQ6GCZQ/b7eXwkdGzeFb2qDgra6FP+RyxHnySx56aWWu Xnz12r8WMg3AlSt/yHrG9Nv5TKTfY1LNEqlb4OxG8+OMs4F7lRkI97JzFOqjo1CF+gmk eKGQUnnwHUtEYrGkgUVgZZBRebFYJJr+2E6uJPj/IKvflDQR/QY6Q/gT0aw9F7GK+vuN /iAF6Gae6NZcVCfJhOYNTQujRJCdkmsvY3ZQ/axKvFD6rlmb9stqsoEVDwnnC+dynK6r 3w4VnVokL87/FWV9DYb0N325rE27x7ME/dRoGbkRAtsGCxFW1Vi71gIhRZIozJJ/iL1h 76ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=0WSF5rL8vgJA2wScEd9ueNVHl1nyw4toWyh9IGKygu0=; fh=2KrNXrrD5DrGMrVrl8wC5A/wjigqRI77pcwL2nJuad4=; b=Kj+xcdG4lFSD6UR6/Fhj+k+mChdLv7/TxCMfyHLN9Ae3ToqJ557d8f1dNQ+B2zTR4Q STr8j8HfULDYiRKG6hRfe1m5W5boTLKHrKb4yC6hw7TqDVZFZpoNoBQaqJEgEJ0u/8xV oNDYAWf15pCPyVL+LI1bihTy2N4C7ZQZCEF7amVMxEykXXOXSxmVu69Btfo3QIyApxBC E/m8+7zPDarZFXiNqbZJmkzAh0a5FIl8Fm+aSkT1htEo3A53Ix6oCLtp1AsFUnfnXZZS 2X63U2R+m33NBjWLpj8eOprmIJ8SHCd+WaGX244JznRnwzP3rdVWhgS3f1aBGva6vVVg 11ZA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 13.115.124.170 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1694769309; x=1695374109; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=0WSF5rL8vgJA2wScEd9ueNVHl1nyw4toWyh9IGKygu0=; b=LZ/mTP0BA0K+LJ2HISjmh+rBF/YFw5MeWj3BrsIbEsTIpLE2qmYCcxE28W11pTOde/ cFiaEwxC6Itj+xQRUH0HnRIcIEANYGvbbEdKox2BDPwcKbJk8XCqviqDO9OaOo7PYxTb J4yAFX5iQfNrrX2fxPgzSzGsZ7HF1OmKhrTUJ1A5LuFkUbXGWBBaxR9LNN1y3ceZaZzE Z7m8By+s40lRzjW1Am9Xkg2QOU4hST79mfVoJ4PDWyBNj+Q8Fnz7QMovKv6v9THqTKbb 55P3e2RuH70AmWijN6kYB65RJeKMVVvtzYB5R7p0VrgkSp6hSYTCSgtLIy89YfO60XS/ QHuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769309; x=1695374109; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=0WSF5rL8vgJA2wScEd9ueNVHl1nyw4toWyh9IGKygu0=; b=fTtrHN6hoo/AMC6BtIdw1SuJ19wRq6wTk7izGaHQX/A9gAVy7IRASMuy/ZQ+L9/apl +EkZ/rDU1I1Kzmph6HQU1doUcHbzOLpwkTvfcQtIiOpj1uuEIUtmwvXrTlDzoOrkAUBa VGhPR/KVb94xY+rdompWh/PbBcxpAkKf8VzeDXVI4+Zz8c6NJCyPXpSt4CCtOQYcojDg /X10VL53Mrl7ImrTfI7DFoBtHjxSAP6evuQlyRXCcIJ818fSskkhCU+AahElL+rw4imQ kiQMIrlJEz1hmfebsSdC/wc5+u6gxFZdz4Mx0tKp0v4rx0dsmSZABYf1MIilNanK8cZM GG2Q== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YxLoz4O4vfwTY7/0ozRQIe7G0y8uZQVqP3Rg2eFZMhyHKeHLnvH gEuEJ4q+FdbF/+WSXMnn2ag= X-Google-Smtp-Source: AGHT+IESJXfiDswUxzFnFSM0OotwPiCu3+F+rJBIQIwDxW5L1OG6GYaOyb+/F3GUNP1d9xC38svukA== X-Received: by 2002:a05:6e02:214f:b0:34c:a30a:15f7 with SMTP id d15-20020a056e02214f00b0034ca30a15f7mr1431074ilv.32.1694769308845; Fri, 15 Sep 2023 02:15:08 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a92:700b:0:b0:33b:7f21:7d7e with SMTP id l11-20020a92700b000000b0033b7f217d7els604559ilc.0.-pod-prod-09-us; Fri, 15 Sep 2023 02:15:07 -0700 (PDT) X-Received: by 2002:a05:6e02:d01:b0:34f:9f86:dd45 with SMTP id g1-20020a056e020d0100b0034f9f86dd45mr1116386ilj.3.1694769307660; Fri, 15 Sep 2023 02:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694769307; cv=none; d=google.com; s=arc-20160816; b=oDu6BPMj9AfNu0HtEVwxx0Efc/xftJH381P7B7fQ8CrRRAaJA6QFfDAZLdk+sATsGv Q+soS0dmDTYtMMT1n9QITttFkM1NG1dtQLc5OFkkOj/gPuU6cooju233F+fpog7BGt4S y0XnEVrzbHkLF4IfHtMC1TwEH80X2J7c884Ji1KAKI7ly65I4JcIH809VpCtDvbd5/7T pUtEG/Yz02np8VaD5cdoncy0pCKM79vrjG6l2NBn6mlp1Uuf4wRitxxCey7mVRLvIyqU RWKUOyBijIWpAq5GWzcIccMre2uD9yJUiRPP1XUn9yoYuXtiSQlfd+A7cR6p04swnj/E sd9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=TLzPjXGCUeZgCjXtg4yzU6ub2kqFITayAfpuh68rB6c=; fh=2KrNXrrD5DrGMrVrl8wC5A/wjigqRI77pcwL2nJuad4=; b=hyVo0ynDtrviN1gvb02WMGqIzwezlmZ6V0FtmItqxr06PYMlG1SFPa65Z4hMAODsRN 4+diMdOvZjj1LA14tKKgEa5hT0HURJcfKFBvDcXZFKAnW/xdtZSMYZNF6mEKqiFfgnd1 5vOaaEQY4RbQmaVP+IjaT4KJgUBsoMv2V/vc57kqRucsC7/lkOxhRC4bAu6W2mMlLdS9 0gF6ywqqV5V7KKFP3Z/dyFVcrfljnMnsbOsbtqbhj4j5iiZp/DR7B7X/9wm0Edlkq0EC 8NDLeGaqF3QW/QaOKPqwL8Ir8hS2uvtHUVsQ9vrYTSB3mLSrtEFyfr2etP+4NGWv8b9Y cL4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 13.115.124.170 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com Received: from gw.atmark-techno.com (gw.atmark-techno.com. [13.115.124.170]) by gmr-mx.google.com with ESMTPS id fg10-20020a056638620a00b00437a8b1170csi521329jab.0.2023.09.15.02.15.07 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:15:07 -0700 (PDT) Received-SPF: pass (google.com: domain of dominique.martinet@atmark-techno.com designates 13.115.124.170 as permitted sender) client-ip=13.115.124.170; Received: from gw.atmark-techno.com (localhost [127.0.0.1]) by gw.atmark-techno.com (Postfix) with ESMTP id 0F16F600D0 for <swupdate@googlegroups.com>; Fri, 15 Sep 2023 18:15:05 +0900 (JST) Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by gw.atmark-techno.com (Postfix) with ESMTPS id CEE30600D0 for <swupdate@googlegroups.com>; Fri, 15 Sep 2023 18:15:04 +0900 (JST) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-68fba07a904so1983416b3a.0 for <swupdate@googlegroups.com>; Fri, 15 Sep 2023 02:15:04 -0700 (PDT) X-Received: by 2002:a05:6a20:13cb:b0:140:c838:2b2e with SMTP id ho11-20020a056a2013cb00b00140c8382b2emr988123pzc.22.1694769303904; Fri, 15 Sep 2023 02:15:03 -0700 (PDT) X-Received: by 2002:a05:6a20:13cb:b0:140:c838:2b2e with SMTP id ho11-20020a056a2013cb00b00140c8382b2emr988115pzc.22.1694769303625; Fri, 15 Sep 2023 02:15:03 -0700 (PDT) Received: from pc-zest.atmarktech (103.131.189.35.bc.googleusercontent.com. [35.189.131.103]) by smtp.gmail.com with ESMTPSA id y7-20020a17090322c700b001c0a414695dsm2987108plg.62.2023.09.15.02.15.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2023 02:15:03 -0700 (PDT) Received: from [::1] (helo=pc-zest.atmark.tech) by pc-zest.atmarktech with esmtp (Exim 4.96) (envelope-from <dominique.martinet@atmark-techno.com>) id 1qh4uj-00DSGp-22; Fri, 15 Sep 2023 18:15:01 +0900 From: Dominique Martinet <dominique.martinet@atmark-techno.com> To: swupdate@googlegroups.com Cc: Dominique Martinet <dominique.martinet@atmark-techno.com> Subject: [swupdate] [PATCH] include/util.h: fix build on musl Date: Fri, 15 Sep 2023 18:14:57 +0900 Message-Id: <20230915091457.3206927-1-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Original-Sender: dominique.martinet@atmark-techno.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 13.115.124.170 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
include/util.h: fix build on musl
|
expand
|
diff --git a/include/util.h b/include/util.h index 3c2a42fc3485..dbf14861b8f2 100644 --- a/include/util.h +++ b/include/util.h @@ -8,11 +8,13 @@ #ifndef _UTIL_H #define _UTIL_H +#include <fcntl.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> +#include <sys/time.h> #if defined(__linux__) #include <linux/types.h> #endif
Building on musl 1.2.4 fails with the following error/warnings: include/util.h:211:23: error: unknown type name 'mode_t' 211 | int mkpath(char *dir, mode_t mode); include/util.h:269:36: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration 269 | char *swupdate_time_iso8601(struct timeval *tv); These were caused by a recent reorganization of the headers and glibc appears more tolerant here. Fixes: 8228b1390632 ("Reorganize includes to have smaller files") Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> --- include/util.h | 2 ++ 1 file changed, 2 insertions(+)