diff options
author | bde <bde@FreeBSD.org> | 1996-09-24 08:08:11 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-24 08:08:11 +0000 |
commit | d2512c2bf99a15faab2ee38b498042767afbfc50 (patch) | |
tree | a7dcc2bf16ed815097f05a03a82f3f704338c35d /gnu/lib/libdialog | |
parent | 1ba7894bc0e2cb3f9e9a098a97edce8d61d95f8f (diff) | |
download | FreeBSD-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 'gnu/lib/libdialog')
-rw-r--r-- | gnu/lib/libdialog/dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/lib/libdialog/dir.c b/gnu/lib/libdialog/dir.c index 04a30b2..9c2c7b5 100644 --- a/gnu/lib/libdialog/dir.c +++ b/gnu/lib/libdialog/dir.c @@ -1,4 +1,3 @@ - /**************************************************************************** * * Program: dir.c @@ -22,20 +21,21 @@ #include <sys/types.h> #include <sys/stat.h> -#if !defined sgi +#include <unistd.h> /* XXX for _POSIX_VERSION ifdefs */ + +#if !defined sgi && !defined _POSIX_VERSION #include <sys/dir.h> #endif #if defined __sun__ #include <sys/dirent.h> #endif -#if defined sgi +#if defined sgi || defined _POSIX_VERSION #include <dirent.h> #endif #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <unistd.h> #include <fnmatch.h> #include <sys/param.h> #include "dir.h" |