openbsd-ports/editors/uemacs/patches/patch-src_input_c

31 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_input_c,v 1.1 2004/01/06 03:29:09 espie Exp $
--- src/input.c.orig 1995-12-29 19:10:12.000000000 +0100
+++ src/input.c 2004-01-06 04:20:22.000000000 +0100
@@ -47,7 +47,7 @@
#include "edef.h"
#include "elang.h"
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
#include <pwd.h>
extern struct passwd *getpwnam();
#endif
@@ -244,7 +244,7 @@ int maxlen; /* maximum length of input
char *ptr; /* string pointer */
char user_name[NSTRING]; /* user name for directory */
static char buf[NSTRING];/* buffer to hold tentative name */
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
struct passwd *pwd; /* password structure */
#endif
@@ -353,7 +353,7 @@ int maxlen; /* maximum length of input
--ttcol;
}
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
/* lookup someone else's home directory! */
if (user_name[0] != 0) {
pwd = getpwnam(user_name);