OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.8 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_iputils.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- ./Makefile.orig 2006-07-07 21:40:12.000000000 +0000
  17. +++ ./Makefile 2006-07-07 21:40:24.000000000 +0000
  18. @@ -5,7 +5,6 @@
  19. DEFINES=
  20. #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
  21. -LDLIBS=-lresolv
  22. ADDLIB=
  23. ifeq ($(LIBC_INCLUDE)/socketbits.h,$(wildcard $(LIBC_INCLUDE)/socketbits.h))
  24. --- ./ping.c.orig 2006-07-07 21:56:01.000000000 +0000
  25. +++ ./ping.c 2006-07-07 21:56:20.000000000 +0000
  26. @@ -61,7 +61,6 @@
  27. #include "ping_common.h"
  28. #include <netinet/ip.h>
  29. -#include <netinet/ip_icmp.h>
  30. #define MAXIPLEN 60
  31. --- ./ping_common.c.orig 2002-09-20 16:02:32.000000000 +0000
  32. +++ ./ping_common.c 2006-07-07 21:58:57.000000000 +0000
  33. @@ -1,6 +1,7 @@
  34. #include "ping_common.h"
  35. #include <ctype.h>
  36. #include <sched.h>
  37. +#include <termios.h>
  38. int options;
  39. --- ./ping_common.h.orig 2006-07-07 21:48:15.000000000 +0000
  40. +++ ./ping_common.h 2006-07-07 22:06:28.000000000 +0000
  41. @@ -9,6 +9,8 @@
  42. #include <sys/time.h>
  43. #include <sys/signal.h>
  44. #include <sys/ioctl.h>
  45. +#include <sys/types.h>
  46. +#include <linux/icmp.h>
  47. #include <net/if.h>
  48. #include <sys/uio.h>
  49. #include <sys/poll.h>
  50. @@ -37,6 +38,8 @@
  51. #define CLR(bit) (A(bit) &= (~B(bit)))
  52. #define TST(bit) (A(bit) & B(bit))
  53. +#define __constant_htons(N) htons(N)
  54. +
  55. /* various options */
  56. extern int options;
  57. #define F_FLOOD 0x001
  58. --- ./tracepath6.c.orig 2006-07-07 22:08:22.000000000 +0000
  59. +++ ./tracepath6.c 2006-07-07 22:08:48.000000000 +0000
  60. @@ -15,7 +15,6 @@
  61. #include <sys/socket.h>
  62. #include <netinet/in.h>
  63. -#include <linux/in6.h>
  64. #include <linux/errqueue.h>
  65. #include <errno.h>
  66. #include <string.h>
  67. --- ./traceroute6.c.orig 2006-07-07 22:09:53.000000000 +0000
  68. +++ ./traceroute6.c 2006-07-07 22:10:30.000000000 +0000
  69. @@ -247,7 +247,4 @@
  70. #include <netinet/udp.h>
  71. -
  72. -#include <linux/ipv6.h>
  73. -#include <linux/in6.h>
  74. #include <linux/icmpv6.h>
  75. --- ./ping6.c.orig 2006-07-07 22:12:25.000000000 +0000
  76. +++ ./ping6.c 2006-07-07 22:12:44.000000000 +0000
  77. @@ -69,7 +69,5 @@
  78. #include "ping_common.h"
  79. -#include <linux/in6.h>
  80. -#include <linux/ipv6.h>
  81. #include <linux/icmpv6.h>
  82. #define BIT_CLEAR(nr, addr) do { ((__u32 *)(addr))[(nr) >> 5] &= ~(1U << ((nr) & 31)); } while(0)