pkgsrc/net/bsddip/patches/patch-ac

69 lines
1.7 KiB
Text

$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 );