-/* $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
#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 */
# 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)