From patchwork Thu May 8 17:48:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 347150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 5EA8E1400C6 for ; Fri, 9 May 2014 03:49:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=J+527+FrR7IABjRSKDdqE/NQC/IgdVgigBrChb0RuR7AfM FJq89p/Yb61jT95afO4Xc9uyiZQ4ql4GHZqmAFxOfjm6vKR+QXnTZjSwALd8JnqE yJpfa/78XtcHVf27x8FeW8Eg2MR+y7ce2eL5eqCqPuSTo46nWGcy+oMjw3dpQ= 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:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=LckGAJYrglwn4TaGD44jmTaW/3Y=; b=ltDDFmsDV/3OnTGxo4iW J21Zw33WNhQvpwbh7M5xQMBIgJ3eo46xnKzkjFcPcg6EqmkC6dadqa9F9kHGc24k bNk6IArUa+eZluOBzPb3VrPEstXFmNGY1XBWKV9XAPloWOadNOblMEcoJSxpTir+ WqQDzpSVB90FOmI28uEXRmg= Received: (qmail 4847 invoked by alias); 8 May 2014 17:48:55 -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 4793 invoked by uid 89); 8 May 2014 17:48:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Fix -Wundef for _UTSNAME_DOMAIN_LENGTH. Message-Id: <20140508174851.22D2D2C39CD@topped-with-meat.com> Date: Thu, 8 May 2014 10:48:50 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=J405smXS c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=otFoGWbNGWgA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=USPawCB0ms5X8KcyJz0A:9 a=WzewSDyAI95r0xv8:21 a=G4gNDDE4mzRWWgcF:21 a=CjuIK1q_8ugA:10 2014-05-08 Roland McGrath * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0. --- a/bits/utsname.h +++ b/bits/utsname.h @@ -21,4 +21,8 @@ /* The size of the character arrays used to hold the information in a `struct utsname'. Enlarge this as necessary. */ -#define _UTSNAME_LENGTH 1024 +#define _UTSNAME_LENGTH 1024 + +/* If nonzero, the size of of the `domainname` field in `struct utsname'. + This is zero to indicate that there should be no such field at all. */ +#define _UTSNAME_DOMAIN_LENGTH 0