diff --git a/src/upnp.c b/src/upnp.c
index 8b3404a1..cdbf3533 100644
--- a/src/upnp.c
+++ b/src/upnp.c
@@ -16,10 +16,6 @@
* along with this program. If not, see .
*/
-#include "tvheadend.h"
-#include "tvhpoll.h"
-#include "upnp.h"
-
#include
#include
#include
@@ -34,6 +30,10 @@
#include
#include
+#include "tvheadend.h"
+#include "tvhpoll.h"
+#include "upnp.h"
+
#if defined(PLATFORM_FREEBSD)
#include
#include