summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1993-12-04 02:19:49 +0000
committerjtc <jtc@NetBSD.org>1993-12-04 02:19:49 +0000
commitdf0edf4ea48edcfa9346337234e78c4a63fdf4e2 (patch)
tree1d571510885d7292d1cf4ae3379565c6dce38201 /fortune
parent76bc5de900f936cbc7141eadf218d874b2261d58 (diff)
downloadbsdgames-darwin-df0edf4ea48edcfa9346337234e78c4a63fdf4e2.tar.gz
bsdgames-darwin-df0edf4ea48edcfa9346337234e78c4a63fdf4e2.tar.zst
bsdgames-darwin-df0edf4ea48edcfa9346337234e78c4a63fdf4e2.zip
Use <dirent.h> instead of <sys/dir.h>.
Diffstat (limited to 'fortune')
-rw-r--r--fortune/fortune/fortune.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index e08fb950..01811bf0 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -42,13 +42,13 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)fortune.c 5.13 (Berkeley) 4/8/91";*/
-static char rcsid[] = "$Id: fortune.c,v 1.6 1993/08/02 18:22:46 mycroft Exp $";
+static char rcsid[] = "$Id: fortune.c,v 1.7 1993/12/04 02:19:49 jtc Exp $";
#endif /* not lint */
# include <machine/endian.h>
# include <sys/param.h>
# include <sys/stat.h>
-# include <sys/dir.h>
+# include <dirent.h>
# include <stdio.h>
# include <assert.h>
# include <stdlib.h>
@@ -58,8 +58,6 @@ static char rcsid[] = "$Id: fortune.c,v 1.6 1993/08/02 18:22:46 mycroft Exp $";
# include "pathnames.h"
#ifdef SYSV
-# include <dirent.h>
-
# define NO_LOCK
# define REGCMP
# ifdef NO_REGEX
@@ -671,11 +669,7 @@ add_dir(fp)
register FILEDESC *fp;
{
register DIR *dir;
-#ifdef SYSV
- register struct dirent *dirent; /* NIH, of course! */
-#else
- register struct direct *dirent;
-#endif
+ register struct dirent *dirent;
auto FILEDESC *tailp;
auto char *name;