22 lines
596 B
Text
22 lines
596 B
Text
$NetBSD: patch-ab,v 1.1 2004/02/23 14:41:42 ben Exp $
|
|
|
|
--- lconnect.c.orig 1995-10-19 08:20:22.000000000 -0700
|
|
+++ lconnect.c
|
|
@@ -53,7 +53,7 @@
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
-#if defined(SYSV) || defined(SYSV386) || defined(SVR4)
|
|
+#if defined(SYSV) || defined(SYSV386) || defined(SVR4) || defined(__NetBSD__)
|
|
#include <unistd.h>
|
|
#endif
|
|
#include <Xm/Xm.h>
|
|
@@ -95,7 +95,7 @@ int host;
|
|
hinfo[host].hostname = local_host_name();
|
|
|
|
/* Get user name */
|
|
-#ifdef __sony_news
|
|
+#if defined(__sony_news) || defined(__NetBSD__)
|
|
username = getlogin();
|
|
#else
|
|
username = cuserid(NULL);
|