This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.21-155-g8bff5aa
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 Mar 2015 00:12:58 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.21-155-g8bff5aa
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 8bff5aab5bce71b4d8b92cb9dc575054ae68b9db (commit)
from 2752f3381b013df24752488488a4cc6e4716fd95 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8bff5aab5bce71b4d8b92cb9dc575054ae68b9db
commit 8bff5aab5bce71b4d8b92cb9dc575054ae68b9db
Author: Roland McGrath <roland@hack.frob.com>
Date: Wed Mar 4 16:11:31 2015 -0800
Define ETH_ALEN in generic <netinet/if_ether.h>.
diff --git a/ChangeLog b/ChangeLog
index 9147b38..d4cfc27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-03-04 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
+ (ETH_ALEN): New macro.
+ (struct ether_addr): Use it for length of ether_addr_octet.
+
* nss/test-netdb.c: Don't #include <rpc/netdb.h>.
(setdb): Don't call __nss_configure_lookup for "rpc".
(do_test): Don't call test_rpc.
diff --git a/sysdeps/generic/netinet/if_ether.h b/sysdeps/generic/netinet/if_ether.h
index 24ffd8b..54dbf47 100644
--- a/sysdeps/generic/netinet/if_ether.h
+++ b/sysdeps/generic/netinet/if_ether.h
@@ -16,17 +16,17 @@
<http://www.gnu.org/licenses/>. */
#ifndef __NETINET_IF_ETHER_H
-
#define __NETINET_IF_ETHER_H 1
-#include <features.h>
#include <sys/types.h>
+#define ETH_ALEN 6 /* Octets in one ethernet address. */
+
/* This is a name for the 48 bit ethernet address available on many
systems. */
struct ether_addr
{
- u_int8_t ether_addr_octet[6];
+ u_int8_t ether_addr_octet[ETH_ALEN];
} __attribute__ ((__packed__));
#endif /* netinet/if_ether.h */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
sysdeps/generic/netinet/if_ether.h | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources