summaryrefslogtreecommitdiffstats
path: root/games/fortune
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-24 08:08:11 +0000
committerbde <bde@FreeBSD.org>1996-09-24 08:08:11 +0000
commitd2512c2bf99a15faab2ee38b498042767afbfc50 (patch)
treea7dcc2bf16ed815097f05a03a82f3f704338c35d /games/fortune
parent1ba7894bc0e2cb3f9e9a098a97edce8d61d95f8f (diff)
downloadFreeBSD-src-d2512c2bf99a15faab2ee38b498042767afbfc50.zip
FreeBSD-src-d2512c2bf99a15faab2ee38b498042767afbfc50.tar.gz
Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications. Maintained existing (inadequate) ifdefs for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any new ones.
Diffstat (limited to 'games/fortune')
-rw-r--r--games/fortune/fortune/fortune.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 05dcb05..e993a1b 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -46,8 +46,8 @@ static const char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
# include <sys/param.h>
# include <sys/stat.h>
-# include <sys/dir.h>
+# include <dirent.h>
# include <fcntl.h>
# include <assert.h>
# include <unistd.h>
@@ -693,11 +693,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;
OpenPOWER on IntegriCloud