blob: dec6718a41dbddbcab8fd045f386d633353f26f5 [file] [log] [blame] [edit]
diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c
index 26192f4..ef9e42b 100644
--- a/upnp/src/genlib/miniserver/miniserver.c
+++ b/upnp/src/genlib/miniserver/miniserver.c
@@ -64,7 +64,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
- #include <sys/socket.h>
/*! . */
#define APPLICATION_LISTENING_PORT 49152
@@ -181,7 +180,7 @@ static int getNumericHostRedirection(
struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr;
struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr;
socklen_t addr_len = sizeof addr;
- in_port_t port;
+ unsigned short port;
char host[NAME_SIZE];
int n;