mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-11 15:03:24 -05:00
Autoconf for dirent, rather than win32ing
This commit is contained in:
parent
f7e3db6861
commit
cb18268049
@ -14,6 +14,7 @@ AC_PROG_LIBTOOL
|
||||
|
||||
AC_CHECK_HEADERS([sys/wait.h])
|
||||
AC_CHECK_HEADERS([sys/param.h])
|
||||
AC_CHECK_HEADERS([dirent.h])
|
||||
AC_CHECK_FUNCS(strptime)
|
||||
AC_CHECK_FUNCS(strtok_r)
|
||||
AC_CHECK_FUNCS(timegm)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user