1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/lang/tcl83/files/patch-tclUnixSock.c
2001-11-14 22:28:19 +00:00

21 lines
472 B
C

--- tclUnixSock.c.orig Fri Apr 16 02:48:05 1999
+++ tclUnixSock.c Wed Nov 14 23:21:18 2001
@@ -65,7 +65,7 @@
char *
Tcl_GetHostName()
{
-#ifndef NO_UNAME
+#if 0
struct utsname u;
struct hostent *hp;
#else
@@ -80,7 +80,7 @@
}
native = NULL;
-#ifndef NO_UNAME
+#if 0
(VOID *) memset((VOID *) &u, (int) 0, sizeof(struct utsname));
if (uname(&u) > -1) { /* INTL: Native. */
hp = gethostbyname(u.nodename); /* INTL: Native. */