aboutsummaryrefslogtreecommitdiffstats
path: root/net/rp-pppoe/files/patch-src::pppoe-server.c
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-23 04:41:52 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-23 04:41:52 +0000
commitcea48283088a8fd02b1eca42d054562216d8f75d (patch)
tree2e65ef1be1f5c19cfa0238055efb688c7b8dd28e /net/rp-pppoe/files/patch-src::pppoe-server.c
parent6a30f581c785a67bfa498464ead12b526e38ca92 (diff)
o New port of rp-pppoe: The popular Roaring Penguin's PPPoE software
o Does not work yet with FreeBSD's pppd. It is being imported in the hope that will bring ppl to fix it. Therefore, marked BROKEN.
Diffstat (limited to 'net/rp-pppoe/files/patch-src::pppoe-server.c')
-rw-r--r--net/rp-pppoe/files/patch-src::pppoe-server.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/rp-pppoe/files/patch-src::pppoe-server.c b/net/rp-pppoe/files/patch-src::pppoe-server.c
new file mode 100644
index 000000000000..53e10a04d988
--- /dev/null
+++ b/net/rp-pppoe/files/patch-src::pppoe-server.c
@@ -0,0 +1,25 @@
+--- src/pppoe-server.c.orig Mon Feb 5 14:34:27 2001
++++ src/pppoe-server.c Thu Mar 22 17:56:25 2001
+@@ -47,6 +47,10 @@
+ #include <sys/wait.h>
+ #endif
+
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
+ #include <signal.h>
+
+ /* Hack for daemonizing */
+@@ -1032,7 +1036,11 @@
+ char buffer[SMALLBUF];
+
+ argv[0] = "pppd";
++#if (defined(BSD) && (BSD >= 199103))
++ argv[1] = "tty";
++#else /* Not BSD, e.g., Linux || Solaris */
+ argv[1] = "pty";
++#endif
+
+ snprintf(buffer, SMALLBUF, "%s -I %s -e %d:%02x:%02x:%02x:%02x:%02x:%02x%s",
+ PPPOE_PATH, IfName,