Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cIho0-0000PK-Vp for mharc-grub-devel@gnu.org; Sun, 18 Dec 2016 15:11:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIhnz-0000MY-4N for grub-devel@gnu.org; Sun, 18 Dec 2016 15:11:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIhnw-0003n3-0i for grub-devel@gnu.org; Sun, 18 Dec 2016 15:11:35 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cIhnv-0003lE-QX for grub-devel@gnu.org; Sun, 18 Dec 2016 15:11:31 -0500 Received: by mail-lf0-x241.google.com with SMTP id p100so5736127lfg.2 for ; Sun, 18 Dec 2016 12:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=/QNIMmPqzsQqFY8740J5w8/nb/70+EIhtH5OqFoteAI=; b=AVFqaZBw0ld8jyRgVIeEcuIFgpnP/ezIwtW5XUTOLzpu1vUW9OGbzI8vWuieysDATy N0oURBr7Pw4QB3gmVjkC7td3Klr9qr5+ZAaF+369VctbOahXJ64goKiqVU7SP1uuLjX4 JO1phdUnhfg78i8EENRKW3y4R6QVCkMZ9L0VCXvnLKCryslZgGRny04/239IoBx3A8KM y/F3SuMN/sLpXawzaL7kL61iuiBCpbJUpwlFxgc9cNbdTyVzkyBIwZK3VjN5PqMLNWMq 4SwTf17DxUl180F8L4CphXC1Fm6EbBSB9tnU8hJWJjyGo08cJFxf/K29C2u8XCSho1Yf I3Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=/QNIMmPqzsQqFY8740J5w8/nb/70+EIhtH5OqFoteAI=; b=FiGmo2SBSgkw3x8eDlon4WuYEd/gHxRutSqk65scR8hvGtgAckXwu7IZRMY8MjqYmg fwOyt7xPlIOCq7w9/cvNiO9DZlLJbL2ZuXGLTiEy96/RNLTvQKWAP56LMbrQ544gqwv0 NipI+uXsYsxK+o3cQV+Dnr7CZvh6S0myddbIcgfyQWvESAJopsHbqplEBD2y1DMuLDM2 nPtnbH0PiOaHbMgcYQbeN2wMPCoVsiwd7dfz2feBGwWCxhyqv6pIPYQqNGF7HibCqyq4 PpabBumZyF9PiP65wor3Ob5ElVSuy13qPhvSbNhKvJhuzI1VKgyezzB0FxzNeCsi6Yhi bekA== X-Gm-Message-State: AKaTC028Mp8mi34RVnejp0v5Nrqmu9aAvqSrbbj3MVkFvriw4rs/OHhE6Xdb83zgDRWWBg== X-Received: by 10.25.234.145 with SMTP id y17mr4391708lfi.25.1482091888932; Sun, 18 Dec 2016 12:11:28 -0800 (PST) Received: from [192.168.1.44] (ppp109-252-90-110.pppoe.spdop.ru. [109.252.90.110]) by smtp.gmail.com with ESMTPSA id q3sm3244867lfj.20.2016.12.18.12.11.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Dec 2016 12:11:28 -0800 (PST) Subject: Re: [PATCH] include sys/sysmacros.h for getting major() definition To: The development of GNU GRUB References: <1482090557-15453-1-git-send-email-raj.khem@gmail.com> Cc: Khem Raj From: Andrei Borzenkov Message-ID: <7403132d-12f4-a41f-7259-d2004c01350f@gmail.com> Date: Sun, 18 Dec 2016 23:11:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1482090557-15453-1-git-send-email-raj.khem@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::241 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 20:11:36 -0000 18.12.2016 22:49, Khem Raj пишет: > glibc 2.25 has deprecated inclusion of by > > Signed-off-by: Khem Raj > --- > grub-core/osdep/linux/getroot.c | 2 +- > grub-core/osdep/unix/getroot.c | 2 +- There are more files using major() > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c > index 09e7e6e..5923d17 100644 > --- a/grub-core/osdep/linux/getroot.c > +++ b/grub-core/osdep/linux/getroot.c > @@ -20,7 +20,7 @@ > #include > > #include > -#include > +#include We already do it: #if defined(MAJOR_IN_MKDEV) #include #elif defined(MAJOR_IN_SYSMACROS) #include #endif If this check fails, please debug why it fails and fix check. > #include > #include > #include > diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c > index 4bf37b0..5aaa086 100644 > --- a/grub-core/osdep/unix/getroot.c > +++ b/grub-core/osdep/unix/getroot.c > @@ -20,7 +20,7 @@ > #include > > #include > -#include > +#include > #include > #include > #include >