mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Autoconf for dirent, rather than win32ing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user