We do have <dirent.h>, and it was harmful to pretend that we don't.
Several files in uucp/libunix included <sys/dir.h> and defined dirent as direct, but <sys/dir.h> defines direct as dirent. This macro recursion is not allowed by cpp in traditional mode. The 2.0 mkdep uses cpp in traditional mode (another bug) so cpp prints a error message and exits with a nonzero status. The error status leaks out of the pipe (another bug) so mkdep "succeeds". It may even succeed.
This commit is contained in:
parent
6f4fdb72c1
commit
6d1bd3be60
@ -26,7 +26,7 @@
|
||||
#define HAVE_TIME_H 1 /* <time.h> */
|
||||
#define HAVE_SYS_WAIT_H 1 /* <sys/wait.h> */
|
||||
#define HAVE_SYS_IOCTL_H 1 /* <sys/ioctl.h> */
|
||||
#define HAVE_DIRENT_H 0 /* <dirent.h> */
|
||||
#define HAVE_DIRENT_H 1 /* <dirent.h> */
|
||||
#define HAVE_MEMORY_H 1 /* <memory.h> */
|
||||
#define HAVE_SYS_PARAM_H 1 /* <sys/param.h> */
|
||||
#define HAVE_UTIME_H 1 /* <utime.h> */
|
||||
|
Loading…
Reference in New Issue
Block a user