summaryrefslogtreecommitdiff
path: root/net/llnlxdir/patches/patch-ab
blob: 1be2e460eb45c8676947eb9923533111b2d2723b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.2 2006/03/22 23:15:30 joerg Exp $

--- lconnect.c.orig	1999-11-22 16:07:32.000000000 -0800
+++ lconnect.c
@@ -92,7 +92,7 @@ init_local_host()
 	hinfo[LOCAL].hostname = local_host_name();
 
 	/* Get user name */
-#if defined(__sony_news) || defined(__MACHTEN__)
+#if defined(__sony_news) || defined(__MACHTEN__) || defined(__NetBSD__) || defined(__DragonFly__)
 	if((username = getenv("USER")) || (username = getlogin()))
 #else
 	if((username = getenv("USER")) || (username = cuserid(NULL)))