summaryrefslogtreecommitdiff
path: root/net/llnlxftp/patches/patch-ab
blob: c686feec281b1c9a1f38356c5a314687706d733e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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);