mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
- fix an incompatibility, which causes daemon to eat 100% CPU even when completely idle (ages old problem with select()'ing on FIFO without writers opened for reading in non-blocking mode); - replace incomplete and ugly daemonize code with native daemon(3). Sponsored by: United Networks of Ukraine
21 lines
602 B
C
21 lines
602 B
C
--- l2tp.h.orig Mon Aug 19 20:26:23 2002
|
|
+++ l2tp.h Tue Nov 12 13:00:09 2002
|
|
@@ -21,7 +21,10 @@
|
|
|
|
#define MAXSTRLEN 120 /* Maximum length of common strings */
|
|
|
|
+#include <sys/types.h>
|
|
+#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
+#include <arpa/inet.h>
|
|
#include <termios.h>
|
|
#include "osport.h"
|
|
#include "scheduler.h"
|
|
@@ -211,6 +214,7 @@
|
|
extern int ppd;
|
|
extern int switch_io; /* jz */
|
|
extern int control_fd;
|
|
+extern int control_fdw;
|
|
extern int start_pppd (struct call *c, struct ppp_opts *);
|
|
extern void magic_lac_dial (void *);
|
|
extern int get_entropy (char *, int);
|