diff options
author | simonb <simonb@pkgsrc.org> | 1999-01-23 17:00:14 +0000 |
---|---|---|
committer | simonb <simonb@pkgsrc.org> | 1999-01-23 17:00:14 +0000 |
commit | 0c885f09257d947a0108f14f28956ff304ef5a36 (patch) | |
tree | c6d9d2ac2307014178f343e695fd279be3977be5 /games/moria/patches/patch-ab | |
parent | 51067b883afeeabd03912dc9fb4c7e7b3f11cce8 (diff) | |
download | pkgsrc-0c885f09257d947a0108f14f28956ff304ef5a36.tar.gz |
moria - another rogue-like game.
Diffstat (limited to 'games/moria/patches/patch-ab')
-rw-r--r-- | games/moria/patches/patch-ab | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/games/moria/patches/patch-ab b/games/moria/patches/patch-ab new file mode 100644 index 00000000000..988c53e7e87 --- /dev/null +++ b/games/moria/patches/patch-ab @@ -0,0 +1,37 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/01/23 17:00:15 simonb Exp $ +--- unix/unix.c.orig Fri Jul 22 08:37:08 1994 ++++ unix/unix.c Wed Dec 2 23:17:35 1998 +@@ -43,6 +43,11 @@ + #include <sys/param.h> + #endif + ++#if (defined(BSD) && BSD >= 199306) ++#include <fcntl.h> ++#include <unistd.h> ++#endif ++ + #ifdef __linux__ + #include <sys/time.h> + #include <sys/types.h> +@@ -276,7 +281,9 @@ + void user_name(buf) + char *buf; + { ++#if !(defined(BSD) && BSD >= 199306) + extern char *getlogin(); ++#endif + struct passwd *pwline; + register char *p; + +@@ -314,7 +321,10 @@ + user[i] = '\0'; + if (i == 0) + { +- char *login = (char *) getlogin(); ++#if !(defined(BSD) && BSD >= 199306) ++ extern char *getlogin(); ++#endif ++ char *login = getlogin(); + + if (login != NULL) + (void) strcpy (user, login); |