Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8973303ybi; Fri, 7 Jun 2019 01:03:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy+Glocv5ntCOqN7Ka7TRljMRDaw1eBmnVRHCOqtnfkiV8XOhPsW3fwB4sY320ui5xyC8W X-Received: by 2002:a17:902:aa0a:: with SMTP id be10mr52996030plb.293.1559894597243; Fri, 07 Jun 2019 01:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559894597; cv=none; d=google.com; s=arc-20160816; b=MW0RwfYRSLYCcqv1+FUhRHBeb5HxbCOgUfJ59CQ9UA+QzkiELmKWsBy/7YOWMLkTEw BFH/M4DJpUsMRxLSfRnoaXmxlwbBdUzUwMuJKFetT/cPY/gin+0Tb42DpXx+UAT2oiYq 5K8xenTk5bQ8yPXgI/fysmdjEDP/hW92xhnt2EPhxFR0T3/UZ788ergEPqqC3/DQ+lnh A2VVlIJvi2n4soQ8zbjZyTbWdIkPA9kRJxQBWYmFY0RVOq9KhFPWFKD8YVZGSF+bvMBe Vo4lsQ3ZUrBQ7gpDV5QH342zah56fix+UrPN9nEE1U38X3EV0g+mFt8orujL6NJPB1KO QmhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=vZ8mlh/VmF1ZXbGqz905qgPF9JQfdOrPS8VPx1qEUNI=; b=AJfUo1hZpvRiXm1uqDxiB94+vEKm63NcFicw6v0XZWp4sEOiBROgEYJw5VKkFlbKF5 /vMxjvfmHq2UpxpvjIj6HeOUxWBZYoYmcU/Tn6LxMZGuYjGIW0BSzS8X4VmttfKNMNz7 F9pViH6KiEHyJCCoYmtiyxp5Cb1BsVRoAcL/3Q3u3W5IiRbjryCmd6HEbUsalLaupay0 Y/9vsnCRcit6rb4ul65YdZ38YU5F0V7NBG3xqKZPThet+RKp4Oq5AQ0qUKaTPQmX2W4d 2LwrcHSaFeJoOxag5fMIu0fUrypTcz5sz5SV9kCZT0d/kF+I1Sgjau10CqnT1DFXyAJe +eRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si1188569pgj.191.2019.06.07.01.02.59; Fri, 07 Jun 2019 01:03:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727104AbfFGIB6 (ORCPT + 99 others); Fri, 7 Jun 2019 04:01:58 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:43251 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbfFGIB6 (ORCPT ); Fri, 7 Jun 2019 04:01:58 -0400 X-Originating-IP: 83.155.44.161 Received: from classic (mon69-7-83-155-44-161.fbx.proxad.net [83.155.44.161]) (Authenticated sender: hadess@hadess.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4EC2260013 for ; Fri, 7 Jun 2019 08:01:56 +0000 (UTC) Message-ID: <101ef9a8e17e89a2a8f43ec081b929b596711b90.camel@hadess.net> Subject: Re: [RFC] tools: Fix build after y2038 changes in glibc From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Date: Fri, 07 Jun 2019 10:01:55 +0200 In-Reply-To: <20190607075133.11255-1-hadess@hadess.net> References: <20190607075133.11255-1-hadess@hadess.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Fri, 2019-06-07 at 09:51 +0200, Bastien Nocera wrote: > The 32-bit SIOCGSTAMP has been deprecated. Use the deprecated name > to fix the build. Without this patch (or a port to the new 64-bit timestamps) you'd get this error on newer glibcs: BUILDSTDERR: tools/rctest.c: In function 'recv_mode': BUILDSTDERR: tools/rctest.c:507:19: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGARP'? BUILDSTDERR: 507 | if (ioctl(sk, SIOCGSTAMP, &tv) < 0) { BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: | SIOCGARP BUILDSTDERR: tools/rctest.c:507:19: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: make[1]: *** [Makefile:6224: tools/rctest.o] Error 1 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... BUILDSTDERR: tools/l2test.c: In function 'recv_mode': BUILDSTDERR: tools/l2test.c:909:19: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGARP'? BUILDSTDERR: 909 | if (ioctl(sk, SIOCGSTAMP, &tv) < 0) { BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: | SIOCGARP BUILDSTDERR: tools/l2test.c:909:19: note: each undeclared identifier is reported only once for each function it appears in Given that those are tests that there's another 19 years to port, and that I don't know how to test, I went for the quickest fix.