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.

102 lines
3.3 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_ppp.patch
  5. # Copyright (C) 2004 - 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. diff -ruN ppp-2.4.3.orig/include/net/ppp_defs.h ppp-2.4.3/include/net/ppp_defs.h
  17. --- ppp-2.4.3.orig/include/net/ppp_defs.h 2002-12-06 10:49:15.000000000 +0100
  18. +++ ppp-2.4.3/include/net/ppp_defs.h 2005-07-13 22:30:36.000000000 +0200
  19. @@ -107,7 +107,7 @@
  20. */
  21. #if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \
  22. - && !defined(__FreeBSD__) && (NS_TARGET < 40)
  23. +&& !defined(__FreeBSD__) && !defined(_GNU_SOURCE) && (NS_TARGET < 40)
  24. #ifdef UINT32_T
  25. typedef UINT32_T u_int32_t;
  26. #else
  27. diff -ruN ppp-2.4.3.orig/pppd/Makefile.linux ppp-2.4.3/pppd/Makefile.linux
  28. --- ppp-2.4.3.orig/pppd/Makefile.linux 2004-11-13 13:02:22.000000000 +0100
  29. +++ ppp-2.4.3/pppd/Makefile.linux 2005-07-14 01:34:39.000000000 +0200
  30. @@ -65,7 +65,7 @@
  31. #HAVE_INET6=y
  32. # Enable plugins
  33. -PLUGIN=y
  34. +#PLUGIN=y
  35. # Enable Microsoft proprietary Callback Control Protocol
  36. #CBCP=y
  37. @@ -121,7 +121,7 @@
  38. CFLAGS += -DHAVE_CRYPT_H=1
  39. endif
  40. ifneq ($(wildcard /usr/lib/libcrypt.*),)
  41. -LIBS += -lcrypt
  42. +LIBS += -lcrypt
  43. endif
  44. ifdef NEEDDES
  45. @@ -167,7 +167,7 @@
  46. ifdef PLUGIN
  47. CFLAGS += -DPLUGIN
  48. LDFLAGS += -Wl,-E
  49. -LIBS += -ldl
  50. +LIBS +=
  51. endif
  52. ifdef FILTER
  53. diff -ruN ppp-2.4.3.orig/pppd/pppcrypt.h ppp-2.4.3/pppd/pppcrypt.h
  54. --- ppp-2.4.3.orig/pppd/pppcrypt.h 2002-12-04 23:44:07.000000000 +0100
  55. +++ ppp-2.4.3/pppd/pppcrypt.h 2005-07-14 00:42:06.000000000 +0200
  56. @@ -33,7 +33,7 @@
  57. #ifndef PPPCRYPT_H
  58. #define PPPCRYPT_H
  59. -#ifdef HAVE_CRYPT_H
  60. +#if defined(HAVE_CRYPT_H) && !defined(__dietlibc__)
  61. #include <crypt.h>
  62. #endif
  63. diff -ruN ppp-2.4.3.orig/pppd/pppd.h ppp-2.4.3/pppd/pppd.h
  64. --- ppp-2.4.3.orig/pppd/pppd.h 2004-11-13 13:02:22.000000000 +0100
  65. +++ ppp-2.4.3/pppd/pppd.h 2005-07-14 01:39:48.000000000 +0200
  66. @@ -54,7 +54,7 @@
  67. #include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */
  68. #include <sys/types.h> /* for u_int32_t, if defined */
  69. #include <sys/time.h> /* for struct timeval */
  70. -#include <net/ppp_defs.h>
  71. +#include <net/ppp_defs.h>
  72. #include "patchlevel.h"
  73. #if defined(__STDC__)
  74. diff -ruN ppp-2.4.3.orig/pppd/sys-linux.c ppp-2.4.3/pppd/sys-linux.c
  75. --- ppp-2.4.3.orig/pppd/sys-linux.c 2004-11-12 11:24:43.000000000 +0100
  76. +++ ppp-2.4.3/pppd/sys-linux.c 2005-07-14 00:22:39.000000000 +0200
  77. @@ -73,7 +73,7 @@
  78. #include <sys/types.h>
  79. #include <sys/socket.h>
  80. #include <sys/time.h>
  81. -#include <sys/errno.h>
  82. +#include <errno.h>
  83. #include <sys/file.h>
  84. #include <sys/stat.h>
  85. #include <sys/utsname.h>
  86. @@ -102,7 +102,7 @@
  87. #define MAX_ADDR_LEN 7
  88. #endif
  89. -#if __GLIBC__ >= 2
  90. +#if __GLIBC__ >= 2 || defined(__dietlibc__)
  91. #include <asm/types.h> /* glibc 2 conflicts with linux/types.h */
  92. #include <net/if.h>
  93. #include <net/if_arp.h>