Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1853899pxm; Thu, 24 Feb 2022 10:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhoF34oSljbX6OOm1n/0zzMOd/nnOnsKJSA3HrTLj6gx5sNa1hk9fUWUa5Xoj6OSbVwtrL X-Received: by 2002:a17:902:d708:b0:14d:cf6a:a9a3 with SMTP id w8-20020a170902d70800b0014dcf6aa9a3mr3841537ply.118.1645727730497; Thu, 24 Feb 2022 10:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645727730; cv=none; d=google.com; s=arc-20160816; b=LCPn9EvpeApAVGJ/+SWdSJr444Qv/5uU9WYTwjLw41if4PA7PXNyCUdNq4XZy3KOQ+ X+OEhOkoXc89ZqbNfUQIGph5paoQVslgx7OhnZj8oabbcADbxyAr209kBVQWWgDEuXMr Rhu9OyApD4bAft5FjW4ptGR4ZUAmeiB/G4X+RCc2Uctbo+01Ei2TDRI10ARSADO91r/V vq/5LceE4C2wYgXZU0A1jNBjYzE1qz/wFEP4pckX8qeMCfDtnuXcIDicUNTxtwYY1rkm MAswa7BkCHV5nea+wuykAdlY2ADBzRp8bj4uDyV1PFgBEXV1diGXttxaBfwu6cVfmBGk YZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=c8I2dcmWfMsSk6pQibuUG7vw4XZRdaUJSxw/t1am3k4=; b=YvZo5+826f+65esu7ys23laB0Q6aUFjADyt8SChRcjm4+ifD8suHytxfk7rCcO4Fcd dFXQ92aI76Gu7yJNWy5r0V5QQvmzIPqRZX9tbw95bYlvFWqivSMkj57qxVyySvUccAkL UuSPYobOa4ccJl3LbHHnT1YjhYLz+JLmKd+Ybq2LYnho2yKvtzft6+78OA1F89AteTuz YWdB+d4XxDnPpSzrIUH06Upe47+9Bgzvk19UKKeWxIL026V8e738uvRwJhhyaSECChB8 ZVL7IstDuznZGlVmfeeSLKj0JH/6oI1A9mzF3KMwA99kTLWcK4SLgqa7DLHsplQ2IMS6 mDMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z3kWRjZf; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3si3330186plf.209.2022.02.24.10.34.57; Thu, 24 Feb 2022 10:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z3kWRjZf; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231283AbiBXRcD (ORCPT + 99 others); Thu, 24 Feb 2022 12:32:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbiBXRcC (ORCPT ); Thu, 24 Feb 2022 12:32:02 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460EC2DC4 for ; Thu, 24 Feb 2022 09:31:31 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id j22so726926wrb.13 for ; Thu, 24 Feb 2022 09:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c8I2dcmWfMsSk6pQibuUG7vw4XZRdaUJSxw/t1am3k4=; b=Z3kWRjZf3QKBjx64VVmJrC+9/TiZuob1vtCokCL99mEvqCbG6t95lRnfVZ7l28grwM fWdfLfhDTMpEZetM5oOyPK0TWQG+4wE5mmNM9QIG6ZKSC/GBKGsFS4uewS3B83eQCum4 xsViaRofA7HY7rjIDlXWG1oMc1s1KgppGEXBl+iNVHzdlcP7NFdCcjbkUYFCDCgHhfH6 7OMv3d1ZLekwnI3gy6rlklcozg/XiTTFZthsFRRFhLmyd4ggjBgxqNH5YxT6bwYxeyxu JqBUkpAaAGJV94AvT3Msr/GemqZSIovOa9RryxVfx7dOZtSscQAIMylShLiSN8YSdnxx PVHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c8I2dcmWfMsSk6pQibuUG7vw4XZRdaUJSxw/t1am3k4=; b=BskkObkh2XRfBjmeaMaCR7qotByC0WW+6ygNjQDoJD5z4EZyQ3fr/bwA965fFFKhx8 TD6lXOj00kKWk7lgPg0k+3EQhLL0+t4nIqkq92sEY3PB9cOmi8GTKK4ebsoueDtygd1c aXE7k06L9+TqY1Qnm/XPIMOAp1hcSicLMtG1Nng11Pr4SDRkjXOoOxS9T2+E2+Y+5XFF P/yV1CvEFoCoYBJoWgEFzw14sCYpjvQJHvnqJ60dEFo7b23e5PsDJZV5omfAwlVOhX9S 7fTLB968utoi7IbCOW+bYwyNACIlZoP6GxsueoUoV/H2+PRTY8/Y/b4xEwvhefnWsB2r LrXw== X-Gm-Message-State: AOAM532SReKkKjXhWOnc81HAMAYyDfEwHozWIlM56G8Af4bjMhTKQTsj 61GLS+kIr0aG5i6LFMcSXX3Do/ahRGQ= X-Received: by 2002:a05:6000:18af:b0:1ea:85d3:a2d with SMTP id b15-20020a05600018af00b001ea85d30a2dmr3125110wri.621.1645723889531; Thu, 24 Feb 2022 09:31:29 -0800 (PST) Received: from kali.home (2a01cb088e0b5b002be75de2a1caa253.ipv6.abo.wanadoo.fr. [2a01:cb08:8e0b:5b00:2be7:5de2:a1ca:a253]) by smtp.gmail.com with ESMTPSA id w4sm3304216wre.102.2022.02.24.09.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 09:31:29 -0800 (PST) From: Fabrice Fontaine To: linux-bluetooth@vger.kernel.org Cc: Fabrice Fontaine Subject: [PATCH BlueZ] src/shared/util.h: include sys/types.h Date: Thu, 24 Feb 2022 18:31:04 +0100 Message-Id: <20220224173104.479809-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Include sys/types.h to avoid the following build failure on musl raised since commit fb57ad9b9d107856e5f1c8135da04ffa2f7a11ac: In file included from src/shared/queue.c:15: ./src/shared/util.h:106:1: error: unknown type name 'ssize_t'; did you mean 'size_t'? 106 | ssize_t util_getrandom(void *buf, size_t buflen, unsigned int flags); | ^~~~~~~ | size_t Fixes: - http://autobuild.buildroot.org/results/83eaeb3863040645409f5787fdbdde79385c5257 --- src/shared/util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/util.h b/src/shared/util.h index c01eccf8a..554481e1e 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -14,6 +14,7 @@ #include #include #include +#include #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #define BIT(n) (1 << (n)) -- 2.34.1