Autoconf for dirent, rather than win32ing

This commit is contained in:
Ron Pedde
2006-10-08 23:14:37 +00:00
parent f7e3db6861
commit cb18268049
4 changed files with 10 additions and 7 deletions

View File

@@ -39,10 +39,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifndef WIN32
#include <netinet/in.h> /* htons and friends */
#include <dirent.h> /* why here? For osx 10.2, of course! */
# include <netinet/in.h> /* htons and friends */
#endif
#include <sys/stat.h>

View File

@@ -32,10 +32,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h> /* why here? For osx 10.2, of course! */
#endif
#ifndef WIN32
# include <netinet/in.h> /* htons and friends */
# include <dirent.h> /* why here? For osx 10.2, of course! */
#endif
#include <sys/stat.h>

View File

@@ -8,8 +8,8 @@
# include "config.h"
#endif
#ifndef WIN32
#include <dirent.h> /* c'mon, config for this */
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#include <errno.h>
#include <limits.h>