From patchwork Fri Oct 18 13:46:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1179378 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-106097-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="E3C8F2xe"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vnPb3SNhz9sNw for ; Sat, 19 Oct 2019 00:46:27 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=hcb 3Dhzn9Sxf8O7+Vyro6gKw06USnWOSqRM5kGCuIbyBZUsE6sjJ9dEItbCpuCC6wiL ch3aIsxNg7JS0lmRTz2s1jmock6nLchV9SybANPhCiAm6PQZCrgWn6TI+eFIaTbc jVxoPtRYv7M4n7AogoFtj7JWpItm1W2IWcQzDXeU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=NssrfQayO M92q7e5AnGr+c1zHas=; b=E3C8F2xe/SaiguHX9ru/v27oZXilYqOZQsPxX9RdB Fs4kx0ScNgZSFUuL7OM5SFzmqcF7zp4MxhJDJa0gKIIdKtNlOUKMGs0Jrq4OIqgG 0Y3OCbOnZbgHCq7E5imEFKLAJmMGpdaTZaa2XhWYvyQW39cQSwabV3H6554br0Nc Aw= Received: (qmail 81844 invoked by alias); 18 Oct 2019 13:46:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 81746 invoked by uid 89); 18 Oct 2019 13:46:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=H*r:10024, H*r:192.168.8, HContent-Transfer-Encoding:8bit X-HELO: mail-out.m-online.net From: Lukasz Majewski To: Joseph Myers Cc: Alistair Francis , Alistair Francis , GNU C Library , Lukasz Majewski Subject: [PATCH] Include explicitly in Linux clock_settime.c Date: Fri, 18 Oct 2019 15:46:01 +0200 Message-Id: <20191018134601.2547-1-lukma@denx.de> MIME-Version: 1.0 The rewritten clock_settime code (which now supports 64 bit time on systems with __WORDSIZE == 32) for Linux now relies on the __ASSUME_TIME64_SYSCALLS flag set. Lets explicitly include the header file where it is defined to avoid any indirect inclusion (which may pose some unwanted API definitions). Tested with scripts/build-many-glibcs.py script. --- sysdeps/unix/sysv/linux/clock_settime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c index fb48de5d50..54999d3008 100644 --- a/sysdeps/unix/sysv/linux/clock_settime.c +++ b/sysdeps/unix/sysv/linux/clock_settime.c @@ -19,6 +19,7 @@ #include #include #include +#include /* Set CLOCK to value TP. */ int