add def of dirfd() for those without it

This commit is contained in:
Todd C. Miller
1999-02-22 19:05:06 +00:00
parent d3730e35f1
commit cd8cc0d00d

View File

@@ -72,6 +72,10 @@
#include "compat.h"
#ifndef dirfd
# define dirfd(dirp) ((dirp)->dd_fd)
#endif
#define ISDOT(dp) \
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))