summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fortune/fortune/fortune.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index b65f78cd..c509352c 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.37 2002/07/20 08:36:23 grant Exp $ */
+/* $NetBSD: fortune.c,v 1.38 2002/11/24 18:03:14 christos Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.37 2002/07/20 08:36:23 grant Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.38 2002/11/24 18:03:14 christos Exp $");
#endif
#endif /* not lint */
@@ -181,12 +181,14 @@ int maxlen_in_list __P((FILEDESC *));
# define RE_FREE(re)
char *Re_pat, *Re_pat13, *Re_use;
-char *Re_error;
-
char *regcmp(), *regex();
+
# elif HAVE_RE_COMP
+char *Re_pat, *Re_pat13, *Re_use;
+char *Re_error;
+
# define RE_INIT(re)
-# define RE_COMP(re, p) ((re) = re_comp(p))
+# define RE_COMP(re, p) (Re_error = re_comp(p))
# define RE_ERROR(re) Re_error
# define RE_OK(re) (Re_error == NULL)
# define RE_EXEC(re, p) re_exec(p)