summaryrefslogtreecommitdiffstats
path: root/libc/include/netinet/if_ether.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-09-11 19:03:02 -0700
committerElliott Hughes <enh@google.com>2012-09-12 12:30:22 -0700
commit86ec05acc9df3098c4e99e5b3ad85dcef66712c7 (patch)
tree722c7b99116ebf1af2032b2daf9e3c428386a65d /libc/include/netinet/if_ether.h
parent666d06fee9e1d2e1401a4b42d94d01e8f38ad1a5 (diff)
downloadbionic-86ec05acc9df3098c4e99e5b3ad85dcef66712c7.zip
bionic-86ec05acc9df3098c4e99e5b3ad85dcef66712c7.tar.gz
bionic-86ec05acc9df3098c4e99e5b3ad85dcef66712c7.tar.bz2
Update the kernel headers to match external/kernel-headers.
Note that the Linux kernel handed over responsibility for most of the socket constants to glibc some time ago. Someone had updated our external/kernel-headers file but not regenerated the bionic headers, so this change copies the missing stuff from the old bionic <linux/socket.h> into <sys/socket.h>. This is what glibc does. I've hacked a few of the other files to #include <sys/socket.h> for backward compatibility, but even so this requires numerous other changes to switch people over from direct inclusion of <linux/...> headers. Change-Id: I0e4af64e631d3cef911a31d90f2f806e058278a0
Diffstat (limited to 'libc/include/netinet/if_ether.h')
-rw-r--r--libc/include/netinet/if_ether.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/include/netinet/if_ether.h b/libc/include/netinet/if_ether.h
index 700b9db..e4317fa 100644
--- a/libc/include/netinet/if_ether.h
+++ b/libc/include/netinet/if_ether.h
@@ -25,6 +25,8 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+
+#include <sys/socket.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#ifndef ETHER_ADDR_LEN