ppp: more portability tweaks; builds on musl/glibc now.

This commit is contained in:
Juan RP 2015-05-10 11:15:19 +02:00
parent 5a4e7f3cac
commit 3e9b2ba731
2 changed files with 24 additions and 3 deletions

View File

@ -100,11 +100,10 @@
--- include/linux/ppp_defs.h.orig 2015-05-10 10:59:27.959155977 +0200
+++ include/linux/ppp_defs.h 2015-05-10 10:59:50.190403246 +0200
@@ -50,6 +50,10 @@
@@ -50,6 +50,9 @@
#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <sys/time.h>
+#ifndef __P
+# define __P(x) x
+#endif
@ -124,3 +123,25 @@
void magic_init __P((void)); /* Initialize the magic number generator */
u_int32_t magic __P((void)); /* Returns the next magic number */
--- include/net/ppp_defs.h.orig 2015-05-10 11:09:54.505127657 +0200
+++ include/net/ppp_defs.h 2015-05-10 11:10:10.753309024 +0200
@@ -38,6 +38,8 @@
#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <sys/time.h> /* time_t */
+
/*
* The basic PPP frame.
*/
--- pppd/plugins/rp-pppoe/config.h.orig 2015-05-10 11:14:12.820011051 +0200
+++ pppd/plugins/rp-pppoe/config.h 2015-05-10 11:14:26.298161498 +0200
@@ -102,7 +102,7 @@
#define HAVE_NETPACKET_PACKET_H 1
/* Define if you have the <sys/cdefs.h> header file. */
-#define HAVE_SYS_CDEFS_H 1
+/* #undef HAVE_SYS_CDEFS_H */
/* Define if you have the <sys/dlpi.h> header file. */
/* #undef HAVE_SYS_DLPI_H */

View File

@ -1,7 +1,7 @@
# Template file for 'ppp'
pkgname=ppp
version=2.4.7
revision=3
revision=4
short_desc="PPP (Point-to-Point Protocol) daemon"
homepage="https://ppp.samba.org/"
license="BSD, LGPLv2+, GPLv2+, Public Domain"