aboutsummaryrefslogtreecommitdiff
path: root/games/moria
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-08-13 16:04:12 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-08-13 16:04:12 +0000
commitffbcac99b44a91185d7702e14bcf59df317b45a6 (patch)
tree230aeda0598b77a6d8e31e85e1d2fe33e04df079 /games/moria
parent90d48d08257001fd7f451c879c78054a45eac8a0 (diff)
downloadports-ffbcac99b44a91185d7702e14bcf59df317b45a6.tar.gz
ports-ffbcac99b44a91185d7702e14bcf59df317b45a6.zip
. Don't declare getlogin(), pull in the prototype from unistd.h.
Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=86896
Diffstat (limited to 'games/moria')
-rw-r--r--games/moria/files/patch-unix::unix.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/moria/files/patch-unix::unix.c b/games/moria/files/patch-unix::unix.c
new file mode 100644
index 000000000000..65bd69fd8093
--- /dev/null
+++ b/games/moria/files/patch-unix::unix.c
@@ -0,0 +1,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;
+