summaryrefslogtreecommitdiffstats
path: root/package/pppd/pppd-2.4.4-nobsd.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-02-19 12:08:11 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-02-19 12:08:11 +0000
commitfc8ac0c7e511db9453105176315cc54574cfc3a7 (patch)
tree2c9f2527fc0d859af2124ef29ce8cb9b0d58bd0a /package/pppd/pppd-2.4.4-nobsd.patch
parenta83dddf9ff22cf160dba9f4ecf21ba7b36d0ba69 (diff)
downloadbuildroot-novena-fc8ac0c7e511db9453105176315cc54574cfc3a7.tar.gz
buildroot-novena-fc8ac0c7e511db9453105176315cc54574cfc3a7.zip
pppd: fix build without UCLIBC_HAS_BSD_ERR
Replace the BSD specific warn() with a call to syslog. Patch by Gustavo Zacarias, closes #109.
Diffstat (limited to 'package/pppd/pppd-2.4.4-nobsd.patch')
-rw-r--r--package/pppd/pppd-2.4.4-nobsd.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/pppd/pppd-2.4.4-nobsd.patch b/package/pppd/pppd-2.4.4-nobsd.patch
new file mode 100644
index 000000000..7ffc1b5ad
--- /dev/null
+++ b/package/pppd/pppd-2.4.4-nobsd.patch
@@ -0,0 +1,21 @@
+diff -Nura ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c ppp-2.4.4-nobsd/pppd/plugins/rp-pppoe/discovery.c
+--- ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c 2005-03-22 07:22:32.000000000 -0300
++++ ppp-2.4.4-nobsd/pppd/plugins/rp-pppoe/discovery.c 2009-02-17 09:01:27.000000000 -0200
+@@ -598,7 +598,7 @@
+ do {
+ padiAttempts++;
+ if (padiAttempts > MAX_PADI_ATTEMPTS) {
+- warn("Timeout waiting for PADO packets");
++ syslog(LOG_WARNING, "Timeout waiting for PADO packets");
+ close(conn->discoverySocket);
+ conn->discoverySocket = -1;
+ return;
+@@ -627,7 +627,7 @@
+ do {
+ padrAttempts++;
+ if (padrAttempts > MAX_PADI_ATTEMPTS) {
+- warn("Timeout waiting for PADS packets");
++ syslog(LOG_WARNING, "Timeout waiting for PADS packets");
+ close(conn->discoverySocket);
+ conn->discoverySocket = -1;
+ return;