1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../ppp/compile.patch.dietlibc
5 # Copyright (C) 2004 - 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
22 #if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \
23 - && !defined(__FreeBSD__) && (NS_TARGET < 40)
24 +&& !defined(__FreeBSD__) && !defined(_GNU_SOURCE) && (NS_TARGET < 40)
26 typedef UINT32_T u_int32_t;
28 diff -ruN ppp-2.4.3.orig/pppd/Makefile.linux ppp-2.4.3/pppd/Makefile.linux
29 --- ppp-2.4.3.orig/pppd/Makefile.linux 2004-11-13 13:02:22.000000000 +0100
30 +++ ppp-2.4.3/pppd/Makefile.linux 2005-07-14 01:34:39.000000000 +0200
38 # Enable Microsoft proprietary Callback Control Protocol
41 CFLAGS += -DHAVE_CRYPT_H=1
43 ifneq ($(wildcard /usr/lib/libcrypt.*),)
58 diff -ruN ppp-2.4.3.orig/pppd/pppcrypt.h ppp-2.4.3/pppd/pppcrypt.h
59 --- ppp-2.4.3.orig/pppd/pppcrypt.h 2002-12-04 23:44:07.000000000 +0100
60 +++ ppp-2.4.3/pppd/pppcrypt.h 2005-07-14 00:42:06.000000000 +0200
66 +#if defined(HAVE_CRYPT_H) && !defined(__dietlibc__)
70 diff -ruN ppp-2.4.3.orig/pppd/pppd.h ppp-2.4.3/pppd/pppd.h
71 --- ppp-2.4.3.orig/pppd/pppd.h 2004-11-13 13:02:22.000000000 +0100
72 +++ ppp-2.4.3/pppd/pppd.h 2005-07-14 01:39:48.000000000 +0200
74 #include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */
75 #include <sys/types.h> /* for u_int32_t, if defined */
76 #include <sys/time.h> /* for struct timeval */
77 -#include <net/ppp_defs.h>
78 +#include <net/ppp_defs.h>
79 #include "patchlevel.h"
82 diff -ruN ppp-2.4.3.orig/pppd/sys-linux.c ppp-2.4.3/pppd/sys-linux.c
83 --- ppp-2.4.3.orig/pppd/sys-linux.c 2004-11-12 11:24:43.000000000 +0100
84 +++ ppp-2.4.3/pppd/sys-linux.c 2005-07-14 00:22:39.000000000 +0200
86 #include <sys/types.h>
87 #include <sys/socket.h>
89 -#include <sys/errno.h>
93 #include <sys/utsname.h>
95 #define MAX_ADDR_LEN 7
99 +#if __GLIBC__ >= 2 || defined(__dietlibc__)
100 #include <asm/types.h> /* glibc 2 conflicts with linux/types.h */
102 #include <net/if_arp.h>