This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Fix -Wundef for _UTSNAME_DOMAIN_LENGTH.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Thu, 8 May 2014 10:48:50 -0700 (PDT)
- Subject: [COMMITTED PATCH] Fix -Wundef for _UTSNAME_DOMAIN_LENGTH.
- Authentication-results: sourceware.org; auth=none
2014-05-08 Roland McGrath <roland@hack.frob.com>
* 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