#include <netinet/in.h>
#include <netdb.h>
#include <sys/stat.h>
+#ifdef HAVE_DIRENT_H
#include <dirent.h>
+#else
+#include <sys/dir.h>
+#endif /* HAVE_DIRENT_H */
#include "sudo.h"
#include "options.h"
int plen;
struct stat cst, pst;
DIR *dirp;
+#ifdef HAVE_DIRENT_H
struct dirent *dent;
+#else
+ struct direct *dent;
+#endif /* HAVE_DIRENT_H */
char buf[MAXCOMMANDLENGTH+1];
if (stat(cmnd, &cst) < 0)
return(dent != NULL);
}
-#endif
+#endif /* USE_REALPATH */
int
ntwk_matches(n)