| |
DG9EP > DPTNT 09.08.98 03:32l 127 Lines 3170 Bytes #999 (0) @ DL
BID : 888DB0IZ_01E
Read: GUEST
Subj: TNT-Patch zum Comp. glibc.patch
Path: OE1XAB<OE3XSR<OE5XBL<DB0WGS<DB0PV<DB0MAK<DB0ERF<DB0SHG<DB0HSK<DB0QS<
DB0IZ
Sent: 980808/1311z @:DB0IZ.#NRW.DEU.EU [BCM West<>Link BOX SOLINGEN] BCM1.40
From: DG9EP @ DB0IZ.#NRW.DEU.EU (Walter)
To: DPTNT @ DL
X-Info: No login password
diff -uNr tnt-1.1alpha3.orig/ax25k.c tnt-1.1alpha3/ax25k.c
--- tnt-1.1alpha3.orig/ax25k.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/ax25k.c Wed Mar 25 21:25:28 1998
@@ -13,10 +13,12 @@
/* poll status every 300ms */
#define AX25K_POLL 300000
+#ifndef __GLIBC__
#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
#include <linux/if.h>
#include <linux/if_ether.h>
-#include <netinet/in.h>
#include <sys/ioctl.h>
#include <linux/ax25.h>
diff -uNr tnt-1.1alpha3.orig/config.h tnt-1.1alpha3/config.h
--- tnt-1.1alpha3.orig/config.h Sun Jan 26 12:40:01 1997
+++ tnt-1.1alpha3/config.h Wed Mar 25 21:25:28 1998
@@ -109,7 +109,9 @@
#define DIRRUN_STRING "ls -xT80 "
#define FREE_STRING "df 2>/dev/null > "
#include <termcap.h>
+#ifndef __GLIBC__
#include <sys/wait.h>
+#endif
#include <linux/wait.h>
#endif
diff -uNr tnt-1.1alpha3.orig/iface.c tnt-1.1alpha3/iface.c
--- tnt-1.1alpha3.orig/iface.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/iface.c Wed Mar 25 21:25:28 1998
@@ -12,9 +12,11 @@
#ifdef USE_IFACE
#include "ifacedef.h"
#include "iface.h"
+#ifndef __GLIBC__
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <sys/un.h>
#include <signal.h>
diff -uNr tnt-1.1alpha3.orig/main.c tnt-1.1alpha3/main.c
--- tnt-1.1alpha3.orig/main.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/main.c Wed Mar 25 21:25:28 1998
@@ -23,9 +23,11 @@
#endif
#ifdef USE_IFACE
+#ifndef __GLIBC__
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <sys/un.h>
#endif
diff -uNr tnt-1.1alpha3.orig/serial.c tnt-1.1alpha3/serial.c
--- tnt-1.1alpha3.orig/serial.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/serial.c Wed Mar 25 21:25:28 1998
@@ -10,9 +10,11 @@
#include "macro.h"
#ifdef USE_SOCKET
+#ifndef __GLIBC__
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <sys/un.h>
#include <signal.h>
#endif
diff -uNr tnt-1.1alpha3.orig/shell.c tnt-1.1alpha3/shell.c
--- tnt-1.1alpha3.orig/shell.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/shell.c Wed Mar 25 21:25:28 1998
@@ -12,9 +12,13 @@
#include <utmp.h>
#ifdef USE_SOCKET
+#ifdef __GLIBC__
+#include <linux/in.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <sys/un.h>
#include <netdb.h>
#endif
diff -uNr tnt-1.1alpha3.orig/tnt.h tnt-1.1alpha3/tnt.h
--- tnt-1.1alpha3.orig/tnt.h Tue Jan 21 21:56:42 1997
+++ tnt-1.1alpha3/tnt.h Wed Mar 25 21:25:28 1998
@@ -9,6 +9,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
+#ifdef __GLIBC__
+#include <errno.h>
+#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <termios.h>
diff -uNr tnt-1.1alpha3.orig/tntc.c tnt-1.1alpha3/tntc.c
--- tnt-1.1alpha3.orig/tntc.c Wed Mar 25 21:28:53 1998
+++ tnt-1.1alpha3/tntc.c Wed Mar 25 21:29:32 1998
@@ -7,9 +7,13 @@
*/
#include "tnt.h"
+#ifdef __GLIBC__
+#include <linux/in.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <sys/un.h>
#include <netdb.h>
#include <signal.h>
Read previous mail | Read next mail
| |