summaryrefslogtreecommitdiff
path: root/net/bsddip/patches/patch-ac
blob: bda703c39af522b16f0de1b98a120b879586c3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$NetBSD: patch-ac,v 1.1 2006/06/30 16:17:27 tron Exp $

--- dip.h.orig	1995-07-01 00:41:05.000000000 +0100
+++ dip.h	2006-06-30 17:10:38.000000000 +0100
@@ -43,17 +43,40 @@
 #include <string.h>
 #include <errno.h>
 #include <syslog.h>
-#include <varargs.h>
 #include <sys/param.h>
 #include <sys/termios.h>
 #include <sys/types.h>
 #include <pwd.h>
 #include <signal.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <net/if.h>
+#include <netinet/in.h>
+#ifdef __FreeBSD__
+#if __FreeBSD__ >= 2
+#include <osreldate.h>
+#endif
+#if __FreeBSD_version >= 300000
+#include <net/if_var.h>
+#include <sys/mbuf.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+#include <net/slcompress.h>
+#endif
+#endif /*__FreeBSD__*/
 #include <net/slip.h>
+#if defined(__DragonFly__)
+#include <net/if_var.h>
+#include <sys/mbuf.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+#include <net/slcompress.h>
+#include <net/sl/if_slvar.h>
+#else
+#if !defined(__NetBSD__)
 #include <net/if_slvar.h>
-#include <netinet/in.h>
+#endif
+#endif
 #include <arpa/inet.h>
 #include <netdb.h>
 extern  int h_errno;
@@ -121,7 +144,7 @@
 /*
  *  Pfad- und Dateinamen-Konstanten
  */
-#define PATH_LOCKD		"/var/spool/uucp/LCK.."
+#define PATH_LOCKD		"/var/spool/lock/LCK"
 #define PATH_ETC_DIPHOSTS	"/etc/diphosts"
 #define PATH_BIN_IFCONFIG	"/sbin/ifconfig"
 #define PATH_BIN_ROUTE		"/sbin/route"
@@ -135,7 +158,6 @@
 /*
  * Extern benoetigte Variablen
  */
-extern  int		errno;
 
 extern  short		opt_debg;	/* Debugging-output-flag	*/
 extern  short		opt_verb;	/* Verbose-flag			*/
@@ -231,3 +253,4 @@
 int  tty_flush ( void );
 int  tty_close ( void );
 int  tty_open ( char * );
+void tty_relock ( void );