diff options
-rw-r--r-- | src/Sockets.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Sockets.c b/src/Sockets.c index 6643ffd..1ee3753 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -38,7 +38,7 @@ CCTK_FILEVERSION(DevThorns_httpd_Socket_c) ********************* Local Routine Prototypes ********************* ********************************************************************/ -int HTTP_MakeSocket (uint16_t port); +int HTTP_MakeSocket (unsigned long port); /******************************************************************** ********************* Other Routine Prototypes ********************* @@ -139,7 +139,13 @@ int HTTP_ShutdownServer(void) int HTTP_Poll(cGH *cctkGH, long sec, long usec) { int i; - size_t size; + +#ifdef HAVE_SOCKLEN_T + socklen_t size; +#else + int size; +#endif + fd_set read_fd_set; struct sockaddr_in clientname; @@ -214,7 +220,7 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec) @endhistory @@*/ -int HTTP_MakeSocket (uint16_t port) +int HTTP_MakeSocket (unsigned long port) { int sock; struct sockaddr_in name; |