diff --git a/src/evhttp/http.c b/src/evhttp/http.c index 6774a32..09ac677 100644 --- a/src/evhttp/http.c +++ b/src/evhttp/http.c @@ -25,8 +25,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #ifdef _EVENT_HAVE_SYS_PARAM_H #include #endif @@ -71,17 +69,17 @@ #endif #include #include + +#undef timeout_pending +#undef timeout_initialized + +#include #ifdef _EVENT_HAVE_UNISTD_H #include #endif #ifdef _EVENT_HAVE_FCNTL_H #include #endif - -#undef timeout_pending -#undef timeout_initialized - -#include #include "evhttp.h" #include #include "log.h" diff --git a/src/evrtsp/rtsp.c b/src/evrtsp/rtsp.c index 242dbe4..dc6ef10 100644 --- a/src/evrtsp/rtsp.c +++ b/src/evrtsp/rtsp.c @@ -28,21 +28,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - -#ifdef _EVENT_HAVE_SYS_PARAM_H -#include -#endif -#ifdef _EVENT_HAVE_SYS_TYPES_H -#include -#endif - -#ifdef _EVENT_HAVE_SYS_TIME_H -#include -#endif -#ifdef _EVENT_HAVE_SYS_IOCCOM_H -#include -#endif #ifndef WIN32 #include @@ -74,6 +59,26 @@ #endif #include #include + +#undef timeout_pending +#undef timeout_initialized + +#include + +#ifdef _EVENT_HAVE_SYS_PARAM_H +#include +#endif +#ifdef _EVENT_HAVE_SYS_TYPES_H +#include +#endif + +#ifdef _EVENT_HAVE_SYS_TIME_H +#include +#endif +#ifdef _EVENT_HAVE_SYS_IOCCOM_H +#include +#endif + #ifdef _EVENT_HAVE_UNISTD_H #include #endif @@ -81,10 +86,6 @@ #include #endif -#undef timeout_pending -#undef timeout_initialized - -#include #include "evrtsp.h" #include /* #define USE_DEBUG */