summaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/131-missing_prototype_macro.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:36 +0000
commit7fa3fe6741b08fb26058e92a43dfd9d3798d102a (patch)
treea1e3e513ee443172b8936c89c1df1a09c21497fa /package/network/services/ppp/patches/131-missing_prototype_macro.patch
parent0f474633e146b30c1775d15ced6bdf8529b16863 (diff)
downloadmaster-31e0f0ae-7fa3fe6741b08fb26058e92a43dfd9d3798d102a.tar.gz
master-31e0f0ae-7fa3fe6741b08fb26058e92a43dfd9d3798d102a.tar.bz2
master-31e0f0ae-7fa3fe6741b08fb26058e92a43dfd9d3798d102a.zip
pppd: fix build errors with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39963
Diffstat (limited to 'package/network/services/ppp/patches/131-missing_prototype_macro.patch')
-rw-r--r--package/network/services/ppp/patches/131-missing_prototype_macro.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/131-missing_prototype_macro.patch b/package/network/services/ppp/patches/131-missing_prototype_macro.patch
new file mode 100644
index 0000000000..868a08b60f
--- /dev/null
+++ b/package/network/services/ppp/patches/131-missing_prototype_macro.patch
@@ -0,0 +1,23 @@
+--- a/pppd/pppd.h
++++ b/pppd/pppd.h
+@@ -67,6 +67,9 @@
+ #define volatile
+ #endif
+
++#undef __P
++#define __P(args) args
++
+ #ifdef INET6
+ #include "eui64.h"
+ #endif
+--- a/pppd/magic.h
++++ b/pppd/magic.h
+@@ -42,6 +42,8 @@
+ * $Id: magic.h,v 1.5 2003/06/11 23:56:26 paulus Exp $
+ */
+
++#include "pppd.h"
++
+ void magic_init __P((void)); /* Initialize the magic number generator */
+ u_int32_t magic __P((void)); /* Returns the next magic number */
+