From patchwork Thu Oct 18 13:06:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Storm, Christian" X-Patchwork-Id: 985880 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43b; helo=mail-wr1-x43b.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbsekulpakgqe3smvrey@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=siemens.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="qnAyv24L"; dkim-atps=neutral Received: from mail-wr1-x43b.google.com (mail-wr1-x43b.google.com [IPv6:2a00:1450:4864:20::43b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bTnm0Lwpz9s89 for ; Fri, 19 Oct 2018 00:06:19 +1100 (AEDT) Received: by mail-wr1-x43b.google.com with SMTP id d16-v6sf23348461wrr.17 for ; Thu, 18 Oct 2018 06:06:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1539867976; cv=pass; d=google.com; s=arc-20160816; b=aU2JMKMZJy/QxlBVH1Bcuw3fCtrV7Nb7UujmlBOxL6iTGzsgQ4kQPciSeavFCHnHmH lwPIF8R6pIB4wfZCJg8SlIYFgf9eOEd4Cf3EdoDz6V0J9kJZNYWS6w/2UCNMipOLYjKz dRMbE93wkDFTwCLLgYZsXKLhBnoCgaIwx+37PG/NuLpfv66+cALurTfVwez/I2gjwm7a rjkgBK1ruwip9nwE7rymPX24dQ1PT9MjgjN5wnm4M8/0ujWK4xLnOdJ6aM8ZP5Pt9HO2 TWb3JwiQtH2aRCH6u0H5etwiX0/wZ7/z1cpXXkVvVHqg+vCWrPtkO8IpFDR9RLyYizqW SOoA== 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=1e+GxbJ8WaeUIBTmOOAVuJhM5V0nWoo/WO2ESgNu8fQ=; b=EkArn3kK8IOIPnFG5Z8qsZec3fveCRojn902fZOyNUp55Zwf36n6iASLx7H7JuGsaT YesxQL+mRDT+SVd/+wLCr53GRXUpRaeNnutKiuv2bstZ2e3mBtsyI33McwFpJPOG/eN1 VWAeMEa39WHQ7sXAh0ZjHUh08hjuPuwWyOt7KyEV2Bja8mFDaIJg/EH6vqEhknszsaUQ kR92jXTwqmwoiPGe/QpNdKYpsvenDh6xIPkdUpnca7d99wnfmf5WHPBAaG922Q+x+7So i/ffV1rWgTUClOzMJuSBs4Be1goCWCgAgskPsemSz37HZJQFHzPJVJO3Lgo+dbwXl6lJ Auaw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1e+GxbJ8WaeUIBTmOOAVuJhM5V0nWoo/WO2ESgNu8fQ=; b=qnAyv24Lc0BG8/mUxg6N1kRt1JX550lEo5hksyFlFvwXSrBZsTgvEcZtEe6hTDe6uW d9naM61AwnHl+5FD9XbovxfsGuRiwzREunVRO6WO5g5hlvxwTbfu4a8bwTFqOJweXJZK 8GztRWGFkFqqnYjWcjDGzijPiTNrzlmIW8woVqT0njWJZsfBVNdzXwh7CTXmH7gvPNLu rP4b3kDkge1aewhXDLDdJg3sdmUUwVGtdNNM/74K9XsmBT0GQu54l0CAdppw4wJ5QcbF oVac5VLgL5cpLqw3hzyhwRe9jiyIzMrWYoXcV7cYDk9qx+W7XyXQmz+EvymS9CmKBFm8 Epyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=1e+GxbJ8WaeUIBTmOOAVuJhM5V0nWoo/WO2ESgNu8fQ=; b=IH8YvQHH+AVEsQc7PRskHDsxwC6NaYK4nSZ+mfsgfFUNud19rF+rhrB8MALB07sfec kFNQy72gpt26VgG1sWDNAZUaXwxqTvowG2/pPq5aMOiCgh/ouOaTGkKI4DdOiD1Z74Z5 LkXA3ZXkD7TP3lbzvwQChQvwNQIkXUkExktblFcJn3dfrGjHZK71XSqTmWLImZ9tXeFe qJo7CyEUAp8ve/P67y1no307xfnZF5vQ+XiF7lf7flylVh5r9yin2rYT3lswGizx8C8K X1YjUXbnsuuws12TM2zIFi6x3PeQRQ/RbeAZx+ki9lWhUFV2ut2/XeMyRN5Dg7nAIRuH uwnA== Sender: swupdate@googlegroups.com X-Gm-Message-State: ABuFfoipYq5J8FEoJTl+x2EWeF3Yg/MBi+2Z0CZgxopn0UDdUCjYM9e6 hSquZCkmjyHMJYm09n3Zafk= X-Google-Smtp-Source: ACcGV63x/bYCPEL6940xlnSYSc3mctgAoy1WruHLQl0LZnwaWLCMWJuZMDH+j1vQyfpOI0YF4nQVlw== X-Received: by 2002:a1c:3b8a:: with SMTP id i132-v6mr2105wma.3.1539867976512; Thu, 18 Oct 2018 06:06:16 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a1c:1d3:: with SMTP id 202-v6ls25355wmb.1.gmail; Thu, 18 Oct 2018 06:06:15 -0700 (PDT) X-Received: by 2002:a1c:65d5:: with SMTP id z204-v6mr20612wmb.11.1539867975934; Thu, 18 Oct 2018 06:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539867975; cv=none; d=google.com; s=arc-20160816; b=t0kTXOD3VVFCODf2oflD7gWd6ImGiPIWPIO09aNcCo8VPBKCseK3SdL9+RkvGDKVl8 TuDyqrXF+UwGXTb+80a+ZxCsO665auDbHr+B7gUFZMN6wODKhnXWVYxL7usf+8adjTS9 JiGA6pyeN+cvbmv2C9CTtwl5PBITp0ajTFyqkwRAhgiEW9VSOtXAlyxPcNVQ//tgfDXk JDoogHuVbDi0iRXXjbNyqt9Y22vKrob3f7f70RxTDIdaxQ0ZQ/Kj2YMBMm1/rVnDIInT Zomo20xUj3A+ySKd/JRAQrNthHMY1uy/lyf3aBOKGZ6s1g57yZvvLK5Ze8a89THGfxuL 1Rrw== 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=yFu5FjWis+f5n+NcvhL7pq7efMUKQxaEGlqtD8jVSZ0=; b=FTWBD2gSut9vC78ziMRp+VPm+lM+nmC26vRjgFj7pbHqYZQ3Kk6wxkoGJnCbxTPS5+ GpZQL2TGsEH8Q+RfcPefXlALP6li0HQvSva4TO95r1uU4oD8BXV3TC7Vr0AYE1PCkc2d f3bbV4cTIcaoXgqsxQtR3Az8f81TWT/k+ktIrKAxq+VpAK/SgskzGQzGEHQrnCz9M+Tw tlsvmNbqKkwlXuG7z7p3+WJUKDR7bDCFOc4Yqod3orBLh60ymEFpp4oy+bBMzxrpyPJW /hqEOXV1zixuoEKKk60uulF0/MksayOX+A5HCk3wwMMTdW6XhIqqFh01yFj6A5Y0R8Il /ROg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id k22-v6si673478wre.4.2018.10.18.06.06.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 06:06:15 -0700 (PDT) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w9ID6F5T011233 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 18 Oct 2018 15:06:15 +0200 Received: from MD1KR9XC.ww002.siemens.net ([139.25.69.84]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w9ID6FMi011310; Thu, 18 Oct 2018 15:06:15 +0200 From: Christian Storm To: swupdate@googlegroups.com Cc: Christian Storm Subject: [swupdate] [PATCH 1/2] Fix compilation on FreeBSD broken by __u64 usage Date: Thu, 18 Oct 2018 15:06:27 +0200 Message-Id: <20181018130628.17133-1-christian.storm@siemens.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Commits c85acb3 and 7f8b34f broke compilation on FreeBSD because the BSDs don't define __u64. Signed-off-by: Christian Storm --- corelib/artifacts_versions.c | 3 +++ include/compat.h | 5 +++++ include/util.h | 2 ++ 3 files changed, 10 insertions(+) diff --git a/corelib/artifacts_versions.c b/corelib/artifacts_versions.c index 4551f29..dc5e496 100644 --- a/corelib/artifacts_versions.c +++ b/corelib/artifacts_versions.c @@ -13,7 +13,10 @@ #include #include #include +#if defined(__linux__) #include +#endif +#include #include #include #include "generated/autoconf.h" diff --git a/include/compat.h b/include/compat.h index a98a388..8bbce90 100644 --- a/include/compat.h +++ b/include/compat.h @@ -31,4 +31,9 @@ * 61 on FreeBSD is ECONNREFUSED. */ #define ENODATA ENOATTR + +/* + * The BSDs don't define this while Linux does. + */ +#define __u64 uint64_t #endif diff --git a/include/util.h b/include/util.h index 7804ff5..06f4a83 100644 --- a/include/util.h +++ b/include/util.h @@ -10,7 +10,9 @@ #include #include +#if defined(__linux__) #include +#endif #include "swupdate.h" #include "swupdate_status.h" #include "compat.h" From patchwork Thu Oct 18 13:06:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Storm, Christian" X-Patchwork-Id: 985881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33f; helo=mail-wm1-x33f.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbtukulpakgqepe2hfaq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=siemens.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="l8h/SSV1"; dkim-atps=neutral Received: from mail-wm1-x33f.google.com (mail-wm1-x33f.google.com [IPv6:2a00:1450:4864:20::33f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bTns3fcjz9s89 for ; Fri, 19 Oct 2018 00:06:25 +1100 (AEDT) Received: by mail-wm1-x33f.google.com with SMTP id j127-v6sf111378wmd.3 for ; Thu, 18 Oct 2018 06:06:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1539867983; cv=pass; d=google.com; s=arc-20160816; b=aNY/z+GEf3129QElmA0z79y7Y7I2v9KILnY/9Et3M7FmHwPjgd5JuJKiqrvE5U9sN4 5IHhrSi3xxZliDXA2kGuv3Nb9smv+bhh42qFmeogUwqb3nOpzER/48zKxge8XEVl6nwn rFmBvB8qMQlWcss5WEB/P6QNpRiKxLE02UcDPYLNtwEmfQ3fgYu4wDOtg0HZLwqPF9h/ C0uXtZO/p+hW3oIVgeOut4Mu1U5tcrXBlT4uBUVIuEqFUkjgAaGRAHsrwfMpq8Jh7wXY Rnvs0evOjKxp1lXrl/nNXtaqMMiLMghBykeibDkOVXrj4sFAPVj3/CJBaLWrXSZxL6H5 SZFQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=SV+MubpkcZvbe558SnkKJjHmP0SIf8Q1R1cCpcyjIBs=; b=UCF8y8BExyD5/1gSqn/Hy7S4/skeNmc9bAtcvois48aub0dJRfO/EhpS7BnHfM395S sKGNNyAMGEYX9OQeSB+pgMpClXVbA9y6AOhk4tOMt0s9MQjhSvEhqGudxwi5gHLDcRxP i20zyFjX48fk9dsXhTqLzU/NyBZMhxQWuNAseMgd7dRg3yk0kTrPKz/Dl3TADt1dVQ/p 9gd49YIFSF2IBPfcfTwIWS4KmxiO1GjiFsVdVyzqay5lIfNKnAHBVnMdYZwbX5sO60Qu V2a860qiIpa3iA+Kky+rf0hbu5Y4m0HHvudit1yGB4mEovB2r88RDDvwacK4AYxPP+if ohBg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=SV+MubpkcZvbe558SnkKJjHmP0SIf8Q1R1cCpcyjIBs=; b=l8h/SSV1QH734z3KjqAlkV/qNGfo8JXVolknlVjJxxcy+2UmnrNu3VUG5M4tP1LhfC h+4uGliuNa44NpicREsd5WfDFxz5WIwdYFw0m0iA6mXaRT+81obw3qLEem2emxm39A5H euCT6qI5ZBG7nz4635Hu7c4Eq+vPGyrhuA5sqiHBSWkPY4T5tsCNEHQS1h8zn5msfNkc 48Sug/0wTE95WE4vjKqTxkJJIASpdQj9ma8zHqsz316J6Y3GgGg3Brk/8s67l5ueawEA HMT03EMT2y+UvnZ8zqpYIQpvtFOvb9MhWXCBO/KWPlmdx2cRZQfhaTPJ7ZP2aaiEFXKX ElfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=SV+MubpkcZvbe558SnkKJjHmP0SIf8Q1R1cCpcyjIBs=; b=QNC61hAXtDPz8Gy5lKiCL6tlSlPq0Qh4WR5bIjwEsiQzMCOzgW/vxFgCao/9WHipTk lKfE6gauEQPrpTBdYnmRPRjs4IWLi7EXvQAMzB307dE9AkpVTNzaxS92QbEqvYLYGG4C WF3DQ/OCxrViSsP9Yx6+UKfytPKwCUcAHt0L8sRAywD5dDHlU1wzp0NOYARSR/Vdwo6P Y+TxXzCE36zJz54XWqSSc+pisVK6YM+F8dFeLR2vdgVSjjQ6lyY1ShbqBDxVNgadFVry CNi77qDZBi4HxIGgwCt+jb3zNZ5tx+Bp1iTtPq19+9BWEolRWnXubol2N/rUM3rU1jyR 60AA== Sender: swupdate@googlegroups.com X-Gm-Message-State: ABuFfoiyt/L7E1HWxyPc9rNtwlsI8ExOnRxIHh8JKd/uEeZm/I2t+1tM kVfheIoh3zIE8DC0R+k7fBw= X-Google-Smtp-Source: ACcGV6382Y6sD81zMFmt5HWEqqqyVMnkdLea8j/IMzro9jiAl053tpvTP23U/R6kbYkHvDGW75pK+Q== X-Received: by 2002:a1c:23c9:: with SMTP id j192-v6mr2111wmj.0.1539867983022; Thu, 18 Oct 2018 06:06:23 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a1c:3442:: with SMTP id b63-v6ls21731wma.12.canary-gmail; Thu, 18 Oct 2018 06:06:22 -0700 (PDT) X-Received: by 2002:a1c:3746:: with SMTP id e67-v6mr20421wma.19.1539867982558; Thu, 18 Oct 2018 06:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539867982; cv=none; d=google.com; s=arc-20160816; b=tRB9Qh+Kow0iKHIESzBJETvOtlrOSQTpbWzqx6dEO96/lAyynfZficEOAOgGQx+XN1 t3VR08SR94Ekk6AEFVXR0jpsi0z28orBsDAxuE6Q2mV/FZ4AekiywFUykn4UCt1AEGBF 4wzcR8ficLbrB7L0RlwIpIjxgVimRyYa80oZfnpHUur2xKjKX9s1T/6BvkUMh8fkD+Mf XqiAFf5PQoqMncgm/mYhgrYEfqYbcBwe5BE8DCyAhUejShT89BiAZrtGwvFXigxShXo3 uJBxSI+RCzjypx5Tj/U0MfCmHy5cvlIN5OnRuVfnONfXxDj5ORShoBr+4rVaBl1KOCxT qe5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=UQdGRtp3/j0w9fuOpYbHHH4s1h0rliIy4P0qzEXs+P0=; b=uWNp26Qt4umrDLo0dMAhy/jXMwrKfcgNHl3wEpKp+i3+BITjoOzAxrDkoyksBApecR V0bWXZoRep6jAzo0jhNQLIbO1pS8CIWaBZ42GDNvY5hqorpvX9xxHIuZ+XfAGAPQMnHD dSQI+DSAM5l49LhLvEiu5+IZl5ti3OgcnFrPmf67VRgSj0ns37JQBqudgIlBk+hVQXBF O0qDsYyuPrn4uJ47cAhwElM36F7EnAuPXTCUqAvYn7QIbKUHhyO8sp5vXaYXx2ArvgY/ 0kUKub1VkXHpDvx2hMwmH3nN3vd6NpYM2YasC9bODfF/MuagXSkwrTzY3ywpyneOKmCE 93Xw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id e5-v6si690968wru.1.2018.10.18.06.06.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 06:06:22 -0700 (PDT) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w9ID6JQ9011409 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 18 Oct 2018 15:06:19 +0200 Received: from MD1KR9XC.ww002.siemens.net ([139.25.69.84]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w9ID6FMj011310; Thu, 18 Oct 2018 15:06:18 +0200 From: Christian Storm To: swupdate@googlegroups.com Cc: Christian Storm Subject: [swupdate] [PATCH 2/2] Fix compilation on FreeBSD broken by strdupa usage Date: Thu, 18 Oct 2018 15:06:28 +0200 Message-Id: <20181018130628.17133-2-christian.storm@siemens.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018130628.17133-1-christian.storm@siemens.com> References: <20181018130628.17133-1-christian.storm@siemens.com> MIME-Version: 1.0 X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Like strndupa() already in compat.h, strdupa() is not defined on the BSDs. Commit 62476e3 makes use of it and hence broke builds on FreeBSD. Signed-off-by: Christian Storm --- include/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/compat.h b/include/compat.h index 8bbce90..3f69dfb 100644 --- a/include/compat.h +++ b/include/compat.h @@ -23,6 +23,10 @@ })) #endif +#ifndef strdupa +#define strdupa(s) strndupa(s, strlen(s)) +#endif + #if defined(__FreeBSD__) /* * Define ENODATA (61 - No data available) to