summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/firefox/Makefile2
-rw-r--r--package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c16
-rw-r--r--package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc6
-rw-r--r--package/firefox/patches/patch-netwerk_sctp_src_user_environment_c14
-rw-r--r--package/glibc/Makefile8
-rw-r--r--package/libpng/Makefile8
-rw-r--r--package/mksh/Makefile6
-rw-r--r--package/ppp/Makefile4
-rw-r--r--package/ppp/patches/patch-chat_chat_c74
-rw-r--r--package/ppp/patches/patch-include_net_if_ppp_h12
-rw-r--r--package/ppp/patches/patch-include_net_ppp-comp_h56
-rw-r--r--package/ppp/patches/patch-include_net_ppp_defs_h11
-rw-r--r--package/ppp/patches/patch-include_net_slcompress_h22
-rw-r--r--package/ppp/patches/patch-include_net_vjcompress_h26
-rw-r--r--package/ppp/patches/patch-modules_bsd-comp_c35
-rw-r--r--package/ppp/patches/patch-modules_deflate_c47
-rw-r--r--package/ppp/patches/patch-modules_if_ppp_c43
-rw-r--r--package/ppp/patches/patch-modules_ppp_ahdlc_c19
-rw-r--r--package/ppp/patches/patch-modules_ppp_c76
-rw-r--r--package/ppp/patches/patch-modules_ppp_comp_c30
-rw-r--r--package/ppp/patches/patch-modules_ppp_mod_h28
-rw-r--r--package/ppp/patches/patch-pppd_auth_c116
-rw-r--r--package/ppp/patches/patch-pppd_cbcp_c59
-rw-r--r--package/ppp/patches/patch-pppd_ccp_c81
-rw-r--r--package/ppp/patches/patch-pppd_chap-new_c20
-rw-r--r--package/ppp/patches/patch-pppd_chap_ms_c36
-rw-r--r--package/ppp/patches/patch-pppd_chap_ms_h24
-rw-r--r--package/ppp/patches/patch-pppd_demand_c11
-rw-r--r--package/ppp/patches/patch-pppd_eap_c41
-rw-r--r--package/ppp/patches/patch-pppd_eap_h13
-rw-r--r--package/ppp/patches/patch-pppd_ecp_c42
-rw-r--r--package/ppp/patches/patch-pppd_eui64_h11
-rw-r--r--package/ppp/patches/patch-pppd_fsm_c25
-rw-r--r--package/ppp/patches/patch-pppd_fsm_h73
-rw-r--r--package/ppp/patches/patch-pppd_ipcp_c129
-rw-r--r--package/ppp/patches/patch-pppd_ipcp_h10
-rw-r--r--package/ppp/patches/patch-pppd_ipv6cp_c106
-rw-r--r--package/ppp/patches/patch-pppd_ipxcp_c98
-rw-r--r--package/ppp/patches/patch-pppd_lcp_c115
-rw-r--r--package/ppp/patches/patch-pppd_lcp_h19
-rw-r--r--package/ppp/patches/patch-pppd_magic_c13
-rw-r--r--package/ppp/patches/patch-pppd_magic_h14
-rw-r--r--package/ppp/patches/patch-pppd_main_c137
-rw-r--r--package/ppp/patches/patch-pppd_md4_h36
-rw-r--r--package/ppp/patches/patch-pppd_multilink_c22
-rw-r--r--package/ppp/patches/patch-pppd_options_c155
-rw-r--r--package/ppp/patches/patch-pppd_plugins_radius_radiusclient_h121
-rw-r--r--package/ppp/patches/patch-pppd_plugins_rp-pppoe_if_c13
-rw-r--r--package/ppp/patches/patch-pppd_plugins_rp-pppoe_plugin_c10
-rw-r--r--package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c22
-rw-r--r--package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe_h29
-rw-r--r--package/ppp/patches/patch-pppd_pppcrypt_h14
-rw-r--r--package/ppp/patches/patch-pppd_pppd_h532
-rw-r--r--package/ppp/patches/patch-pppd_sys-linux_c22
-rw-r--r--package/ppp/patches/patch-pppd_sys-solaris_c27
-rw-r--r--package/ppp/patches/patch-pppd_tty_c61
-rw-r--r--package/ppp/patches/patch-pppd_upap_c53
-rw-r--r--package/ppp/patches/patch-pppd_upap_h12
-rw-r--r--package/ppp/patches/patch-pppd_utils_c37
-rw-r--r--package/ppp/patches/patch-pppdump_bsd-comp_c27
-rw-r--r--package/ppp/patches/patch-pppdump_deflate_c31
-rw-r--r--package/ppp/patches/patch-pppdump_ppp-comp_h33
-rw-r--r--package/ppp/patches/patch-pppstats_pppstats_c22
-rw-r--r--package/ppp/patches/patch-solaris_ppp_ahdlc_c19
-rw-r--r--package/ppp/patches/patch-solaris_ppp_c78
-rw-r--r--package/ppp/patches/patch-solaris_ppp_comp_c30
-rw-r--r--package/ppp/patches/patch-solaris_ppp_mod_c17
-rw-r--r--package/ppp/patches/patch-solaris_ppp_mod_h28
-rw-r--r--package/valgrind/Makefile2
-rw-r--r--package/valgrind/patches/patch-configure_ac11
70 files changed, 3171 insertions, 29 deletions
diff --git a/package/firefox/Makefile b/package/firefox/Makefile
index 1fb663e06..d54996401 100644
--- a/package/firefox/Makefile
+++ b/package/firefox/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= firefox
PKG_VERSION:= 26.0
-PKG_RELEASE:= 2
+PKG_RELEASE:= 4
PKG_MD5SUM:= 91ce51cc6474f1269484e5327643a59c
PKG_DESCR:= graphical webbrowser
PKG_SECTION:= x11/apps
diff --git a/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
index 3a79329a3..f2b55cd6a 100644
--- a/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
+++ b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
@@ -1,6 +1,16 @@
--- mozilla-release.orig/media/mtransport/third_party/nICEr/src/stun/addrs.c 2013-12-05 17:07:48.000000000 +0100
-+++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/addrs.c 2014-02-05 07:19:01.000000000 +0100
-@@ -53,7 +53,9 @@ static char *RCSSTRING __UNUSED__="$Id:
++++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/addrs.c 2014-03-16 18:41:03.000000000 +0100
+@@ -45,7 +45,9 @@ static char *RCSSTRING __UNUSED__="$Id:
+ #include <sys/param.h>
+ #include <sys/socket.h>
+ #ifndef ANDROID
++#ifdef __GLIBC__
+ #include <sys/sysctl.h>
++#endif
+ #include <sys/syslog.h>
+ #else
+ #include <syslog.h>
+@@ -53,7 +55,9 @@ static char *RCSSTRING __UNUSED__="$Id:
#undef __unused
#include <linux/sysctl.h>
#endif
@@ -10,7 +20,7 @@
#ifndef LINUX
#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#include <net/if_var.h>
-@@ -61,14 +63,17 @@ static char *RCSSTRING __UNUSED__="$Id:
+@@ -61,14 +65,17 @@ static char *RCSSTRING __UNUSED__="$Id:
#include <net/if_dl.h>
#include <net/if_types.h>
#include <sys/sockio.h>
diff --git a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
index 809dff52a..5e066a88a 100644
--- a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
+++ b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
@@ -1,6 +1,6 @@
--- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-12-05 17:07:50.000000000 +0100
-+++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2014-02-05 07:19:01.000000000 +0100
-@@ -36,11 +36,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
++++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2014-03-16 10:56:09.000000000 +0100
+@@ -36,11 +36,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, -1,
"Available number of cores:%d", number_of_cores_);
@@ -12,7 +12,7 @@
#elif defined(WEBRTC_BSD) || defined(WEBRTC_MAC)
int name[] = {
CTL_HW,
-@@ -61,8 +56,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
+@@ -61,8 +56,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
"Failed to get number of cores");
number_of_cores_ = 1;
}
diff --git a/package/firefox/patches/patch-netwerk_sctp_src_user_environment_c b/package/firefox/patches/patch-netwerk_sctp_src_user_environment_c
new file mode 100644
index 000000000..a31543c75
--- /dev/null
+++ b/package/firefox/patches/patch-netwerk_sctp_src_user_environment_c
@@ -0,0 +1,14 @@
+--- mozilla-release.orig/netwerk/sctp/src/user_environment.c 2013-12-05 17:07:52.000000000 +0100
++++ mozilla-release/netwerk/sctp/src/user_environment.c 2014-03-16 17:53:08.000000000 +0100
+@@ -35,9 +35,11 @@
+ #include <stdint.h>
+ #if !defined(__Userspace_os_FreeBSD)
+ #if !defined(ANDROID)
++#if defined(__GLIBC__)
+ #include <sys/sysctl.h>
+ #endif
+ #endif
++#endif
+ #include <netinet/sctp_os_userspace.h>
+ #endif
+ #include <user_environment.h>
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 92ccf8cd4..9fa4cf7bb 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -31,10 +31,10 @@ INSTALL_STYLE:= manual
# compile nothing, glibc is already build in toolchain directory
do-install:
${INSTALL_DIR} ${IDIR_GLIBC}/$(ADK_TARGET_LIBC_PATH)
- $(CP) $(STAGING_TARGET_DIR)/$(ADK_TARGET_LIBC_PATH)/ld*.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH)
- for file in libc libcrypt libdl libm libnsl libresolv libutil libnss_compat libnss_dns libnss_files; do \
- $(CP) $(STAGING_TARGET_DIR)/$(ADK_TARGET_LIBC_PATH)/$$file.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \
- $(CP) $(STAGING_TARGET_DIR)/$(ADK_TARGET_LIBC_PATH)/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \
+ $(CP) $(STAGING_TARGET_DIR)/lib/ld*.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH)
+ for file in libc libcrypt libdl libm libnsl libresolv libutil libnss_dns libnss_files; do \
+ $(CP) $(STAGING_TARGET_DIR)/lib/$$file.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \
+ $(CP) $(STAGING_TARGET_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH); \
done
${INSTALL_DIR} $(IDIR_GLIBC)/usr/bin
$(CP) $(STAGING_TARGET_DIR)/usr/bin/getconf $(IDIR_GLIBC)/usr/bin
diff --git a/package/libpng/Makefile b/package/libpng/Makefile
index ea4c3a1f8..3f16ecf3f 100644
--- a/package/libpng/Makefile
+++ b/package/libpng/Makefile
@@ -4,10 +4,10 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libpng
-PKG_VERSION:= 1.6.8
+PKG_VERSION:= 1.6.10
PKG_RELEASE:= 1
-PKG_MD5SUM:= 29b7065906e2551508a0d7eacd19174e
-PKG_DESCR:= A library for reading/writing PNG images
+PKG_MD5SUM:= b0f0c38a02dc92f70f0053a40abc7e0b
+PKG_DESCR:= library for reading/writing PNG images
PKG_SECTION:= libs
PKG_DEPENDS:= zlib
PKG_BUILDDEP:= zlib
@@ -23,8 +23,6 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBPNG,libpng,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
-
libpng-install:
${INSTALL_DIR} ${IDIR_LIBPNG}/usr/lib
${CP} ${WRKINST}/usr/lib/libpng*.so* ${IDIR_LIBPNG}/usr/lib
diff --git a/package/mksh/Makefile b/package/mksh/Makefile
index c40d9d807..63d391e18 100644
--- a/package/mksh/Makefile
+++ b/package/mksh/Makefile
@@ -21,7 +21,13 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+ifeq ($(ADK_STATIC),y)
+TARGET_CFLAGS+= -static
+TARGET_LDFLAGS+= -static
+endif
+
TARGET_CPPFLAGS+= -DMKSH_SMALL=1
+TARGET_LDFLAGS+= -static-libgcc
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
diff --git a/package/ppp/Makefile b/package/ppp/Makefile
index 08d545c79..2c3c17bc3 100644
--- a/package/ppp/Makefile
+++ b/package/ppp/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ppp
PKG_VERSION:= 2.4.5
-PKG_RELEASE:= 6
+PKG_RELEASE:= 7
PKG_MD5SUM:= 4621bc56167b6953ec4071043fe0ec57
PKG_DESCR:= Point-to-Point Protocol software
PKG_SECTION:= ppp
@@ -15,8 +15,6 @@ PKG_URL:= http://ppp.samba.org/
PKG_SITES:= ftp://ftp.samba.org/pub/ppp/
PKG_MULTI:= 1
-PKG_LIBC_DEPENDS:= uclibc glibc
-
PKG_SUBPKGS:= PPP PPP_MOD_PPPOA PPP_MOD_PPPOE PPP_MOD_RADIUS
PKG_SUBPKGS+= PPP_MOD_CHAT PPP_MOD_PPPDUMP PPP_MOD_PPPSTATS PPP_MOD_PPPUMTS
PKGSS_PPP_MOD_PPPOE:= kmod-pppoe
diff --git a/package/ppp/patches/patch-chat_chat_c b/package/ppp/patches/patch-chat_chat_c
new file mode 100644
index 000000000..2718fbd8d
--- /dev/null
+++ b/package/ppp/patches/patch-chat_chat_c
@@ -0,0 +1,74 @@
+--- ppp-2.4.5.orig/chat/chat.c 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/chat/chat.c 2014-03-17 16:13:08.000000000 +0100
+@@ -209,39 +209,39 @@ int clear_report_next = 0;
+
+ int say_next = 0, hup_next = 0;
+
+-void *dup_mem __P((void *b, size_t c));
+-void *copy_of __P((char *s));
+-char *grow __P((char *s, char **p, size_t len));
+-void usage __P((void));
+-void msgf __P((const char *fmt, ...));
+-void fatal __P((int code, const char *fmt, ...));
+-SIGTYPE sigalrm __P((int signo));
+-SIGTYPE sigint __P((int signo));
+-SIGTYPE sigterm __P((int signo));
+-SIGTYPE sighup __P((int signo));
+-void unalarm __P((void));
+-void init __P((void));
+-void set_tty_parameters __P((void));
+-void echo_stderr __P((int));
+-void break_sequence __P((void));
+-void terminate __P((int status));
+-void do_file __P((char *chat_file));
+-int get_string __P((register char *string));
+-int put_string __P((register char *s));
+-int write_char __P((int c));
+-int put_char __P((int c));
+-int get_char __P((void));
+-void chat_send __P((register char *s));
+-char *character __P((int c));
+-void chat_expect __P((register char *s));
+-char *clean __P((register char *s, int sending));
+-void break_sequence __P((void));
+-void terminate __P((int status));
+-void pack_array __P((char **array, int end));
+-char *expect_strtok __P((char *, char *));
+-int vfmtmsg __P((char *, int, const char *, va_list)); /* vsprintf++ */
++void *dup_mem (void *b, size_t c);
++void *copy_of (char *s);
++char *grow (char *s, char **p, size_t len);
++void usage (void);
++void msgf (const char *fmt, ...);
++void fatal (int code, const char *fmt, ...);
++SIGTYPE sigalrm (int signo);
++SIGTYPE sigint (int signo);
++SIGTYPE sigterm (int signo);
++SIGTYPE sighup (int signo);
++void unalarm (void);
++void init (void);
++void set_tty_parameters (void);
++void echo_stderr (int);
++void break_sequence (void);
++void terminate (int status);
++void do_file (char *chat_file);
++int get_string (register char *string);
++int put_string (register char *s);
++int write_char (int c);
++int put_char (int c);
++int get_char (void);
++void chat_send (register char *s);
++char *character (int c);
++void chat_expect (register char *s);
++char *clean (register char *s, int sending);
++void break_sequence (void);
++void terminate (int status);
++void pack_array (char **array, int end);
++char *expect_strtok (char *, char *);
++int vfmtmsg (char *, int, const char *, va_list); /* vsprintf++ */
+
+-int main __P((int, char *[]));
++int main (int, char *[]);
+
+ void *dup_mem(b, c)
+ void *b;
diff --git a/package/ppp/patches/patch-include_net_if_ppp_h b/package/ppp/patches/patch-include_net_if_ppp_h
new file mode 100644
index 000000000..6741e64c8
--- /dev/null
+++ b/package/ppp/patches/patch-include_net_if_ppp_h
@@ -0,0 +1,12 @@
+--- ppp-2.4.5.orig/include/net/if_ppp.h 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/include/net/if_ppp.h 2014-03-17 16:13:06.000000000 +0100
+@@ -150,7 +150,7 @@ struct ifpppcstatsreq {
+ #endif
+
+ #if (defined(_KERNEL) || defined(KERNEL)) && !defined(NeXT)
+-void pppattach __P((void));
+-void pppintr __P((void));
++void pppattach (void);
++void pppintr (void);
+ #endif
+ #endif /* _IF_PPP_H_ */
diff --git a/package/ppp/patches/patch-include_net_ppp-comp_h b/package/ppp/patches/patch-include_net_ppp-comp_h
new file mode 100644
index 000000000..42e9562b5
--- /dev/null
+++ b/package/ppp/patches/patch-include_net_ppp-comp_h
@@ -0,0 +1,56 @@
+--- ppp-2.4.5.orig/include/net/ppp-comp.h 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/include/net/ppp-comp.h 2014-03-17 16:13:07.000000000 +0100
+@@ -59,36 +59,36 @@ struct compressor {
+ int compress_proto; /* CCP compression protocol number */
+
+ /* Allocate space for a compressor (transmit side) */
+- void *(*comp_alloc) __P((u_char *options, int opt_len));
++ void *(*comp_alloc) (u_char *options, int opt_len);
+ /* Free space used by a compressor */
+- void (*comp_free) __P((void *state));
++ void (*comp_free) (void *state);
+ /* Initialize a compressor */
+- int (*comp_init) __P((void *state, u_char *options, int opt_len,
+- int unit, int hdrlen, int debug));
++ int (*comp_init) (void *state, u_char *options, int opt_len,
++ int unit, int hdrlen, int debug);
+ /* Reset a compressor */
+- void (*comp_reset) __P((void *state));
++ void (*comp_reset) (void *state);
+ /* Compress a packet */
+- int (*compress) __P((void *state, PACKETPTR *mret,
+- PACKETPTR mp, int orig_len, int max_len));
++ int (*compress) (void *state, PACKETPTR *mret,
++ PACKETPTR mp, int orig_len, int max_len);
+ /* Return compression statistics */
+- void (*comp_stat) __P((void *state, struct compstat *stats));
++ void (*comp_stat) (void *state, struct compstat *stats);
+
+ /* Allocate space for a decompressor (receive side) */
+- void *(*decomp_alloc) __P((u_char *options, int opt_len));
++ void *(*decomp_alloc) (u_char *options, int opt_len);
+ /* Free space used by a decompressor */
+- void (*decomp_free) __P((void *state));
++ void (*decomp_free) (void *state);
+ /* Initialize a decompressor */
+- int (*decomp_init) __P((void *state, u_char *options, int opt_len,
+- int unit, int hdrlen, int mru, int debug));
++ int (*decomp_init) (void *state, u_char *options, int opt_len,
++ int unit, int hdrlen, int mru, int debug);
+ /* Reset a decompressor */
+- void (*decomp_reset) __P((void *state));
++ void (*decomp_reset) (void *state);
+ /* Decompress a packet. */
+- int (*decompress) __P((void *state, PACKETPTR mp,
+- PACKETPTR *dmpp));
++ int (*decompress) (void *state, PACKETPTR mp,
++ PACKETPTR *dmpp);
+ /* Update state for an incompressible packet received */
+- void (*incomp) __P((void *state, PACKETPTR mp));
++ void (*incomp) (void *state, PACKETPTR mp);
+ /* Return decompression statistics */
+- void (*decomp_stat) __P((void *state, struct compstat *stats));
++ void (*decomp_stat) (void *state, struct compstat *stats);
+ };
+ #endif /* PACKETPTR */
+
diff --git a/package/ppp/patches/patch-include_net_ppp_defs_h b/package/ppp/patches/patch-include_net_ppp_defs_h
new file mode 100644
index 000000000..1945c78d7
--- /dev/null
+++ b/package/ppp/patches/patch-include_net_ppp_defs_h
@@ -0,0 +1,11 @@
+--- ppp-2.4.5.orig/include/net/ppp_defs.h 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/include/net/ppp_defs.h 2014-03-17 16:32:53.000000000 +0100
+@@ -38,6 +38,8 @@
+ #ifndef _PPP_DEFS_H_
+ #define _PPP_DEFS_H_
+
++#include <sys/time.h>
++
+ /*
+ * The basic PPP frame.
+ */
diff --git a/package/ppp/patches/patch-include_net_slcompress_h b/package/ppp/patches/patch-include_net_slcompress_h
new file mode 100644
index 000000000..69d57d909
--- /dev/null
+++ b/package/ppp/patches/patch-include_net_slcompress_h
@@ -0,0 +1,22 @@
+--- ppp-2.4.5.orig/include/net/slcompress.h 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/include/net/slcompress.h 2014-03-17 16:13:06.000000000 +0100
+@@ -137,12 +137,12 @@ struct slcompress {
+ /* flag values */
+ #define SLF_TOSS 1 /* tossing rcvd frames because of input err */
+
+-void sl_compress_init __P((struct slcompress *));
+-void sl_compress_setup __P((struct slcompress *, int));
+-u_int sl_compress_tcp __P((struct mbuf *,
+- struct ip *, struct slcompress *, int));
+-int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *));
+-int sl_uncompress_tcp_core __P((u_char *, int, int, u_int,
+- struct slcompress *, u_char **, u_int *));
++void sl_compress_init (struct slcompress *);
++void sl_compress_setup (struct slcompress *, int);
++u_int sl_compress_tcp (struct mbuf *,
++ struct ip *, struct slcompress *, int);
++int sl_uncompress_tcp (u_char **, int, u_int, struct slcompress *);
++int sl_uncompress_tcp_core (u_char *, int, int, u_int,
++ struct slcompress *, u_char **, u_int *);
+
+ #endif /* _SLCOMPRESS_H_ */
diff --git a/package/ppp/patches/patch-include_net_vjcompress_h b/package/ppp/patches/patch-include_net_vjcompress_h
new file mode 100644
index 000000000..cc267c8ea
--- /dev/null
+++ b/package/ppp/patches/patch-include_net_vjcompress_h
@@ -0,0 +1,26 @@
+--- ppp-2.4.5.orig/include/net/vjcompress.h 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/include/net/vjcompress.h 2014-03-17 16:13:06.000000000 +0100
+@@ -130,15 +130,15 @@ struct vjcompress {
+ /* flag values */
+ #define VJF_TOSS 1 /* tossing rcvd frames because of input err */
+
+-extern void vj_compress_init __P((struct vjcompress *comp, int max_state));
+-extern u_int vj_compress_tcp __P((struct ip *ip, u_int mlen,
++extern void vj_compress_init (struct vjcompress *comp, int max_state);
++extern u_int vj_compress_tcp (struct ip *ip, u_int mlen,
+ struct vjcompress *comp, int compress_cid_flag,
+- u_char **vjhdrp));
+-extern void vj_uncompress_err __P((struct vjcompress *comp));
+-extern int vj_uncompress_uncomp __P((u_char *buf, int buflen,
+- struct vjcompress *comp));
+-extern int vj_uncompress_tcp __P((u_char *buf, int buflen, int total_len,
++ u_char **vjhdrp);
++extern void vj_uncompress_err (struct vjcompress *comp);
++extern int vj_uncompress_uncomp (u_char *buf, int buflen,
++ struct vjcompress *comp);
++extern int vj_uncompress_tcp (u_char *buf, int buflen, int total_len,
+ struct vjcompress *comp, u_char **hdrp,
+- u_int *hlenp));
++ u_int *hlenp);
+
+ #endif /* _VJCOMPRESS_H_ */
diff --git a/package/ppp/patches/patch-modules_bsd-comp_c b/package/ppp/patches/patch-modules_bsd-comp_c
new file mode 100644
index 000000000..4bba327c7
--- /dev/null
+++ b/package/ppp/patches/patch-modules_bsd-comp_c
@@ -0,0 +1,35 @@
+--- ppp-2.4.5.orig/modules/bsd-comp.c 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/modules/bsd-comp.c 2014-03-17 16:13:07.000000000 +0100
+@@ -148,19 +148,19 @@ struct bsd_db {
+ #define BSD_OVHD 2 /* BSD compress overhead/packet */
+ #define BSD_INIT_BITS BSD_MIN_BITS
+
+-static void *bsd_comp_alloc __P((u_char *options, int opt_len));
+-static void *bsd_decomp_alloc __P((u_char *options, int opt_len));
+-static void bsd_free __P((void *state));
+-static int bsd_comp_init __P((void *state, u_char *options, int opt_len,