summaryrefslogtreecommitdiff
path: root/games/moria/files/patch-unix::unix.c
blob: 65bd69fd8093d739d436549c9f8512807b96a160 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$FreeBSD$

--- unix/unix.c.orig	Tue Aug 12 10:36:13 2003
+++ unix/unix.c	Tue Aug 12 10:38:47 2003
@@ -14,6 +14,10 @@
 /* defines TRUE and FALSE */
 #include <curses.h>
 
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
+
 #include "config.h"
 #include "constant.h"
 #include "types.h"
@@ -276,7 +280,9 @@
 void user_name(buf)
 char *buf;
 {
+#ifndef __FreeBSD__
   extern char *getlogin();
+#endif
   struct passwd *pwline;
   register char *p;