From patchwork Tue May 26 20:42:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 135767 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6B854BABF39 for ; Tue, 26 May 2026 20:42:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6B854BABF39 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 218444BA23CC for ; Tue, 26 May 2026 20:42:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 218444BA23CC 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 218444BA23CC Authentication-Results: sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779828145; cv=none; b=s8MVgoFarIGUO4X2GtJ+oGUtCAlU+ZtPgTKc8tDZTB0EBcmOlwrmRsxAS7ynJxnWV79oHb5GqhGizvQ5JFmNbvUjUhZvnJZz9SaNmzgFMauguKrPNsyEiYdUvsq/bZBzL4gXhrLMd6q53CfIzmUvxHAN5VelhP+RweGlvUmvHCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779828145; c=relaxed/simple; bh=iSqAWZTswGutbeuSQ245Ktt/XMNbipF6LuIyngurnLc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Zw+7aUHadFMb5ZEmsgeZykJ2jMcuRtEEbqGzcdLc10irwnd1UDsL9AutfyYW1fESFWTlIjl7iKWOnv8HBlpug3ReOnuTvbxhEREIdgHxvGN1HhYJ/kg0qFeOZruUKSoBK39uoXpl7GKe18zHJ1onOxyBPKV253txQEw1kRX637k= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 218444BA23CC Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 8E21DA0407; Tue, 26 May 2026 22:42:22 +0200 (CEST) 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 auGhG-iNTCE4; Tue, 26 May 2026 22:42:22 +0200 (CEST) Received: from end (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 40E17A065A; Tue, 26 May 2026 22:42:22 +0200 (CEST) Received: from samy by end with local (Exim 4.99.2) (envelope-from ) id 1wRybV-00000000C3X-2roi; Tue, 26 May 2026 22:42:21 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Pino Toscano , commit-hurd@gnu.org Subject: [hurd,commited 1/3] Hurd: comment PF_LINK/AF_LINK defines Date: Tue, 26 May 2026 22:42:19 +0200 Message-ID: <20260526204221.46327-2-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260526204221.46327-1-samuel.thibault@ens-lyon.org> References: <20260526204221.46327-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_PBL, SPF_HELO_PASS, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on 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 From: Pino Toscano Comment out the PF_LINK and AF_LINK defines, since they are usually associated with struct sockaddr_dl, which is not available on Hurd. --- sysdeps/mach/hurd/bits/socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/mach/hurd/bits/socket.h b/sysdeps/mach/hurd/bits/socket.h index 9b81d48816..4a5807e619 100644 --- a/sysdeps/mach/hurd/bits/socket.h +++ b/sysdeps/mach/hurd/bits/socket.h @@ -96,7 +96,7 @@ enum __socket_type #define PF_HYLINK 15 /* NSC Hyperchannel protocol. */ #define PF_APPLETALK 16 /* Don't use this. */ #define PF_ROUTE 17 /* Internal Routing Protocol. */ -#define PF_LINK 18 /* Link layer interface. */ +/* #define PF_LINK 18 Link layer interface. */ #define PF_XTP 19 /* eXpress Transfer Protocol (no AF). */ #define PF_COIP 20 /* Connection-oriented IP, aka ST II. */ #define PF_CNT 21 /* Computer Network Technology. */ @@ -129,7 +129,7 @@ enum __socket_type #define AF_HYLINK PF_HYLINK #define AF_APPLETALK PF_APPLETALK #define AF_ROUTE PF_ROUTE -#define AF_LINK PF_LINK +/* #define AF_LINK PF_LINK */ #ifdef __USE_MISC # define pseudo_AF_XTP PF_XTP #endif