# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/ppp/compile.patch.dietlibc # Copyright (C) 2004 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- diff -ruN ppp-2.4.3.orig/include/net/ppp_defs.h ppp-2.4.3/include/net/ppp_defs.h --- ppp-2.4.3.orig/include/net/ppp_defs.h 2002-12-06 10:49:15.000000000 +0100 +++ ppp-2.4.3/include/net/ppp_defs.h 2005-07-13 22:30:36.000000000 +0200 @@ -107,7 +107,7 @@ */ #if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \ - && !defined(__FreeBSD__) && (NS_TARGET < 40) +&& !defined(__FreeBSD__) && !defined(_GNU_SOURCE) && (NS_TARGET < 40) #ifdef UINT32_T typedef UINT32_T u_int32_t; #else diff -ruN ppp-2.4.3.orig/pppd/Makefile.linux ppp-2.4.3/pppd/Makefile.linux --- ppp-2.4.3.orig/pppd/Makefile.linux 2004-11-13 13:02:22.000000000 +0100 +++ ppp-2.4.3/pppd/Makefile.linux 2005-07-14 01:34:39.000000000 +0200 @@ -65,7 +65,7 @@ #HAVE_INET6=y # Enable plugins -PLUGIN=y +#PLUGIN=y # Enable Microsoft proprietary Callback Control Protocol #CBCP=y @@ -121,7 +121,7 @@ CFLAGS += -DHAVE_CRYPT_H=1 endif ifneq ($(wildcard /usr/lib/libcrypt.*),) -LIBS += -lcrypt +LIBS += -lcrypt endif ifdef NEEDDES @@ -167,7 +167,7 @@ ifdef PLUGIN CFLAGS += -DPLUGIN LDFLAGS += -Wl,-E -LIBS += -ldl +LIBS += endif ifdef FILTER diff -ruN ppp-2.4.3.orig/pppd/pppcrypt.h ppp-2.4.3/pppd/pppcrypt.h --- ppp-2.4.3.orig/pppd/pppcrypt.h 2002-12-04 23:44:07.000000000 +0100 +++ ppp-2.4.3/pppd/pppcrypt.h 2005-07-14 00:42:06.000000000 +0200 @@ -33,7 +33,7 @@ #ifndef PPPCRYPT_H #define PPPCRYPT_H -#ifdef HAVE_CRYPT_H +#if defined(HAVE_CRYPT_H) && !defined(__dietlibc__) #include #endif diff -ruN ppp-2.4.3.orig/pppd/pppd.h ppp-2.4.3/pppd/pppd.h --- ppp-2.4.3.orig/pppd/pppd.h 2004-11-13 13:02:22.000000000 +0100 +++ ppp-2.4.3/pppd/pppd.h 2005-07-14 01:39:48.000000000 +0200 @@ -54,7 +54,7 @@ #include /* for MAXPATHLEN and BSD4_4, if defined */ #include /* for u_int32_t, if defined */ #include /* for struct timeval */ -#include +#include #include "patchlevel.h" #if defined(__STDC__) diff -ruN ppp-2.4.3.orig/pppd/sys-linux.c ppp-2.4.3/pppd/sys-linux.c --- ppp-2.4.3.orig/pppd/sys-linux.c 2004-11-12 11:24:43.000000000 +0100 +++ ppp-2.4.3/pppd/sys-linux.c 2005-07-14 00:22:39.000000000 +0200 @@ -73,7 +73,7 @@ #include #include #include -#include +#include #include #include #include @@ -102,7 +102,7 @@ #define MAX_ADDR_LEN 7 #endif -#if __GLIBC__ >= 2 +#if __GLIBC__ >= 2 || defined(__dietlibc__) #include /* glibc 2 conflicts with linux/types.h */ #include #include