From patchwork Sat Nov 9 23:47:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 100694 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 48BB33858D28 for ; Sat, 9 Nov 2024 23:47:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 4C0BA3858D28 for ; Sat, 9 Nov 2024 23:47:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C0BA3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C0BA3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731196029; cv=none; b=JVHsdR0ZIAknhYJ2msO6FN0durYcS/uI+Cul6ZiT/zoOBWRPj7dmg3QEReCKGd4qv/cCxR9dKHlzu0lCouDA2K+Y7eILLB6/eU9hCbAHQIqP4MqGajF8U+Y2sHrYeCjFLrepUMdeIzq+y3zCVh00Ejk2w+0iRPPbhEsoNC/wLlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731196029; c=relaxed/simple; bh=GMllsVd8Io7hRtjvxiAZx60N5oKJJOTCbYGDop9xZLY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=TlsocFIClrBbCZeUsgbQgYbBm7cZIq5qwlEGMdhjTz1apIndOt0rInYOcKXy7cwDJBrz+Xs9ABDyYSrGFHd+cHIwUbW+8JIrs9BlXa2u9HzTZQe0peNntDUIQ54nAYR8BGrK/cxESHKXhWji4dOHHvz+NTX1FD1GWsdg9ZMjKH4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 3355FA1B21; Sun, 10 Nov 2024 00:47:07 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mUwB4n4_La6o; Sun, 10 Nov 2024 00:47:07 +0100 (CET) Received: from begin (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id AE802A1B1D; Sun, 10 Nov 2024 00:47:06 +0100 (CET) Received: from samy by begin with local (Exim 4.98) (envelope-from ) id 1t9vAY-00000002D4O-0KaU; Sun, 10 Nov 2024 00:47:06 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [commited] stat.h: Fix missing declaration of struct timespec Date: Sun, 10 Nov 2024 00:47:05 +0100 Message-ID: <20241109234705.526889-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org When building with e.g. -std=c99 and _ATFILE_SOURCE, stat.h was missing including bits/types/struct_timespec.h to get the struct timespec declaration for utimensat. --- io/sys/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/sys/stat.h b/io/sys/stat.h index 3b4ba80132..0e4edb483d 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -26,7 +26,7 @@ #include /* For __mode_t and __dev_t. */ -#ifdef __USE_XOPEN2K8 +#if defined(__USE_ATFILE) || defined(__USE_XOPEN2K8) # include #endif