Commit 89dac2e3 authored by Karl Heyes's avatar Karl Heyes

minor header cleanup

svn path=/icecast/trunk/icecast/; revision=14219
parent 6ee33215
...@@ -20,12 +20,20 @@ ...@@ -20,12 +20,20 @@
* Solaris. * Solaris.
*/ */
#ifdef _WIN32 #ifdef HAVE_UNISTD_H
#include <windows.h>
#else
#include <unistd.h> #include <unistd.h>
#endif #endif
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
/* Make sure we define 64 bit types */ /* Make sure we define 64 bit types */
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <time.h>
#ifdef HAVE_POLL #ifdef HAVE_POLL
#include <sys/poll.h> #include <sys/poll.h>
#endif #endif
...@@ -27,7 +26,6 @@ ...@@ -27,7 +26,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#ifndef _WIN32 #ifndef _WIN32
#include <sys/time.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#else #else
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
#ifdef _WIN32 #ifdef _WIN32
/* For getpid() */ /* For getpid() */
#include <process.h> #include <process.h>
#include <windows.h>
#define snprintf _snprintf #define snprintf _snprintf
#define getpid _getpid #define getpid _getpid
#endif #endif
......
...@@ -25,11 +25,9 @@ ...@@ -25,11 +25,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef _WIN32 #ifndef _WIN32
#include <sys/time.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment