summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 00:36:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 00:36:00 +0000
commit32bb5c8b5aaa2322996d5499d65ed3d99ab6a3ca (patch)
tree67db7859c730d4d0df8be16cfe51458e739cb9fd /bin
parent09f953a174464ba8c750219cfcf9ecdc344eba0d (diff)
__OpenBSD__
Diffstat (limited to 'bin')
-rw-r--r--bin/ed/ed.h4
-rw-r--r--bin/sh/cd.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/ed/ed.h b/bin/ed/ed.h
index 0e67781ab3f..c710b5bbd97 100644
--- a/bin/ed/ed.h
+++ b/bin/ed/ed.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ed.h,v 1.2 1996/06/23 14:20:00 deraadt Exp $ */
+/* $OpenBSD: ed.h,v 1.3 1996/08/22 00:35:17 deraadt Exp $ */
/* $NetBSD: ed.h,v 1.23 1995/03/21 09:04:40 cgd Exp $ */
/* ed.h: type and constant definitions for the ed editor. */
@@ -35,7 +35,7 @@
# include <sys/param.h> /* for MAXPATHLEN */
#endif
#include <errno.h>
-#if defined(sun) || defined(__NetBSD__)
+#if defined(sun) || defined(__NetBSD__) || defined(__OpenBSD__)
# include <limits.h>
#endif
#include <regex.h>
diff --git a/bin/sh/cd.c b/bin/sh/cd.c
index b00266ad4a7..140b32392a8 100644
--- a/bin/sh/cd.c
+++ b/bin/sh/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.6 1996/06/23 14:21:09 deraadt Exp $ */
+/* $OpenBSD: cd.c,v 1.7 1996/08/22 00:35:24 deraadt Exp $ */
/* $NetBSD: cd.c,v 1.15 1996/03/01 01:58:58 jtc Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)cd.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: cd.c,v 1.6 1996/06/23 14:21:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cd.c,v 1.7 1996/08/22 00:35:24 deraadt Exp $";
#endif
#endif /* not lint */
@@ -257,7 +257,7 @@ getpwd()
* c implementation of getcwd, that does not open a pipe to
* /bin/pwd.
*/
-#if defined(__NetBSD__) || defined(__svr4__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__svr4__)
if (getcwd(buf, sizeof(buf)) == NULL)
error("getcwd() failed");
curdir = savestr(buf);