aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/net
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-03 08:58:56 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-03 08:58:56 +0000
commitf8b0689f8075b766ba1af5a478ac19a695e43bce (patch)
tree6515a59bb48a766f562b2efb0cc8d3bb81a2d0cc /sysdeps/unix/sysv/linux/net
parent393db3d2f833a0425813361cd8353dc6e2aa9c48 (diff)
downloadglibc-f8b0689f8075b766ba1af5a478ac19a695e43bce.tar
glibc-f8b0689f8075b766ba1af5a478ac19a695e43bce.tar.gz
glibc-f8b0689f8075b766ba1af5a478ac19a695e43bce.tar.bz2
glibc-f8b0689f8075b766ba1af5a478ac19a695e43bce.zip
Update.
2002-10-03 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/net/route.h: Include bits/wordsize.h. (struct rtentry): Make rt_pad4 6 bytes long if __WORDSIZE == 64. * sysdeps/unix/sysv/linux/alpha/Dist: Remove net/route.h. * sysdeps/unix/sysv/linux/alpha/net/route.h: Remove. * sysdeps/unix/sysv/linux/ia64/Dist: Remove net/route.h. * sysdeps/unix/sysv/linux/ia64/net/route.h: Remove. * sysdeps/unix/sysv/linux/s390/Dist: Remove net/route.h. * sysdeps/unix/sysv/linux/s390/net/route.h: Remove.
Diffstat (limited to 'sysdeps/unix/sysv/linux/net')
-rw-r--r--sysdeps/unix/sysv/linux/net/route.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/net/route.h b/sysdeps/unix/sysv/linux/net/route.h
index fc72c7efbd..da5c810c7e 100644
--- a/sysdeps/unix/sysv/linux/net/route.h
+++ b/sysdeps/unix/sysv/linux/net/route.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -25,6 +25,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
+#include <bits/wordsize.h>
/* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
@@ -39,7 +40,11 @@ struct rtentry
unsigned long int rt_pad3;
unsigned char rt_tos;
unsigned char rt_class;
+#if __WORDSIZE == 64
+ short int rt_pad4[3];
+#else
short int rt_pad4;
+#endif
short int rt_metric; /* +1 for binary compatibility! */
char *rt_dev; /* Forcing the device at add. */
unsigned long int rt_mtu; /* Per route MTU/Window. */