diff mbox series

ppp: fix compilation with musl 1.2.0

Message ID 20200901215015.91441-1-rosenp@gmail.com
State New
Headers show
Series ppp: fix compilation with musl 1.2.0 | expand

Commit Message

Rosen Penev Sept. 1, 2020, 9:50 p.m. UTC
As sys/cdefs.h is no longer available, a __P definition is needed.

Fixes compilation with rp-pppoe-server.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 package/network/services/ppp/Makefile              |  2 +-
 package/network/services/ppp/patches/610-__P.patch | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 package/network/services/ppp/patches/610-__P.patch
diff mbox series

Patch

diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
index de73fdbe00..f28510421b 100644
--- a/package/network/services/ppp/Makefile
+++ b/package/network/services/ppp/Makefile
@@ -9,7 +9,7 @@  include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=ppp
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/paulusmack/ppp
diff --git a/package/network/services/ppp/patches/610-__P.patch b/package/network/services/ppp/patches/610-__P.patch
new file mode 100644
index 0000000000..61056b75a7
--- /dev/null
+++ b/package/network/services/ppp/patches/610-__P.patch
@@ -0,0 +1,14 @@ 
+--- a/pppd/pppd.h
++++ b/pppd/pppd.h
+@@ -61,9 +61,11 @@
+ 
+ #if defined(__STDC__)
+ #include <stdarg.h>
++#define __P(x)	x
+ #define __V(x)	x
+ #else
+ #include <varargs.h>
++#define __P(x)	()
+ #define __V(x)	(va_alist) va_dcl
+ #define const
+ #define volatile