dirfd() is now defined in compat.h as needed.
This commit is contained in:
@@ -47,10 +47,6 @@
|
|||||||
|
|
||||||
#include "sudo.h"
|
#include "sudo.h"
|
||||||
|
|
||||||
#ifndef dirfd
|
|
||||||
# define dirfd(dirp) ((dirp)->dd_fd)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] = "$Sudo$";
|
static const char rcsid[] = "$Sudo$";
|
||||||
#endif /* lint */
|
#endif /* lint */
|
||||||
|
4
getcwd.c
4
getcwd.c
@@ -74,10 +74,6 @@
|
|||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
#ifndef dirfd
|
|
||||||
# define dirfd(dirp) ((dirp)->dd_fd)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ISDOT(dp) \
|
#define ISDOT(dp) \
|
||||||
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
|
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
|
||||||
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
|
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
|
||||||
|
Reference in New Issue
Block a user