Commit 2c5ad9d9 authored by Pavan Balaji's avatar Pavan Balaji
Browse files

[svn-r4119] Move the sys/socket.h include to the appropriate header file, so other

sockets code can also use it in the future.
parent 9bb9d19f
......@@ -139,6 +139,10 @@ int HYDU_Time_left(HYD_Time start, HYD_Time timeout);
#include <netinet/in.h>
#include <netinet/tcp.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if !defined size_t
#define size_t unsigned int
#endif /* size_t */
......
......@@ -6,10 +6,6 @@
#include "hydra_utils.h"
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
HYD_Status HYDU_Sock_listen(int *listen_fd, char *port_range, uint16_t * port)
{
struct sockaddr_in sa;
......
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