From patchwork Fri May 11 16:39:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 10394715 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D750E602B1 for ; Fri, 11 May 2018 16:40:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D51528A54 for ; Fri, 11 May 2018 16:40:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7187828BFB; Fri, 11 May 2018 16:40:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E1AD828A54 for ; Fri, 11 May 2018 16:40:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9023820FE; Fri, 11 May 2018 16:40:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F33630BD4E5; Fri, 11 May 2018 16:40:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 72488180B536; Fri, 11 May 2018 16:40:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4BGe3hM029546 for ; Fri, 11 May 2018 12:40:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id 479E8604C8; Fri, 11 May 2018 16:40:03 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3B56F60180 for ; Fri, 11 May 2018 16:39:59 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E83830C54E6 for ; Fri, 11 May 2018 16:39:48 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id v60-v6so5947172wrc.7 for ; Fri, 11 May 2018 09:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4/GlVit27aPQMLeuf8OfZYB012S+oM2Vx/3Lr6OXoNw=; b=IrHs8CSZKi+/pDmaQuKbWLLAFFipDNYzj/91mr6I/Zq7hQ7wIx0eGdwsr0lb1KEHfQ 5+SfkLTjlYRNb3BCjsxRAYWS5tdMSIG+UOtXSnJIXTltl0fz7mlN1ZvrjX7HzdaoKXEt nNyxeRFksGLnj+SABPmeQEp2Oiqd8tmx0Uvimw7lZgZS+/H5POOmuNUV+xncrQTaEDK9 7ldTM9AJ6378JIQJohyUjUAlJg3scRBpb8m0H63WWaJgX15mGl5n6a9Q6DXxlM/KRMer HVN1lsLlNQyFex/h8atw12d836S6ksBi9ZGSNVjuuLdduTSbez9YM7eArF2UuwGYG5k+ hfGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4/GlVit27aPQMLeuf8OfZYB012S+oM2Vx/3Lr6OXoNw=; b=gzx7A+tfhy3zEhB5jL6ygILG3dI+0fG/cWAdPWA9M5lBWjk6W3BKVsYw42wUd71vyo 51zJ6xoOA1QzApsCBoOnv4zjeKgAr2hsBpPeDioCWXU8g4JIbTwtwVKhYSgZsnhzkhze UScYjFyGD2pRJR2WroJr67WFicg5bJWpKYSUNUw55u0zU/7YkQ/OO6hvCt07oSqOr1yt AXntiAevH7c9XJBMhnEDxFUMkcie7MqpgB/WFk+lP+wukPNzK3CzYh0FF0SyGIISCfmR wyaaApWiRUqT0lNbphU+dn72+8OrsI23dGMRDKd1lxQjNUJHQoZSFs8tmTl8HPBSIK0T gTBw== X-Gm-Message-State: ALKqPwfonc0sJH7RAzLq/dujKIMMUWiVBTropeEL+ATXRNMvPQfvYrhX Tp3NFWCr4oHCekBCmffEItE/qkA= X-Google-Smtp-Source: AB8JxZpw4+q/Bx7k/UlFXrmecRJIRamBOtEzOYS9dGSkPffGdW3Z8uRqU0qQiH+/RlRZ0U/er1xL9Q== X-Received: by 2002:adf:9582:: with SMTP id p2-v6mr4709061wrp.16.1526056786802; Fri, 11 May 2018 09:39:46 -0700 (PDT) Received: from localhost ([84.78.21.129]) by smtp.gmail.com with ESMTPSA id h66-v6sm2120378wmf.8.2018.05.11.09.39.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 09:39:45 -0700 (PDT) From: Xose Vazquez Perez To: Date: Fri, 11 May 2018 18:39:44 +0200 Message-Id: <20180511163944.16190-1-xose.vazquez@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 11 May 2018 16:39:48 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 11 May 2018 16:39:48 +0000 (UTC) for IP:'209.85.128.196' DOMAIN:'mail-wr0-f196.google.com' HELO:'mail-wr0-f196.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.3 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.196 mail-wr0-f196.google.com 209.85.128.196 mail-wr0-f196.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: dm-devel@redhat.com Cc: DM ML , Xose Vazquez Perez , Martin Wilck Subject: [dm-devel] [PATCH] multipath-tools: fix compilation with musl libc X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 11 May 2018 16:40:10 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP In file included from alias.c:15: file.h:9:47: error: unknown type name ‘mode_t’; did you mean ‘time_t’? int ensure_directories_exist(const char *str, mode_t dir_mode); ^~~~~~ time_t sysfs.c: In function ‘sysfs_is_multipathed’: sysfs.c:304:15: error: ‘PATH_MAX’ undeclared (first use in this function); did you mean ‘PATH_UP’? char pathbuf[PATH_MAX]; ^~~~~~~~ PATH_UP Cc: Martin Wilck Cc: Christophe Varoqui Cc: DM ML Signed-off-by: Xose Vazquez Perez --- libmultipath/file.h | 2 ++ libmultipath/sysfs.c | 1 + 2 files changed, 3 insertions(+) diff --git a/libmultipath/file.h b/libmultipath/file.h index 29520c7..3c75c90 100644 --- a/libmultipath/file.h +++ b/libmultipath/file.h @@ -5,6 +5,8 @@ #ifndef _FILE_H #define _FILE_H +#include + #define FILE_TIMEOUT 30 int ensure_directories_exist(const char *str, mode_t dir_mode); int open_file(const char *file, int *can_write, const char *header); diff --git a/libmultipath/sysfs.c b/libmultipath/sysfs.c index ee72e6a..16e0a73 100644 --- a/libmultipath/sysfs.c +++ b/libmultipath/sysfs.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "checkers.h" #include "vector.h"