Skip to content

Commit

Permalink
move the winsock2.h into cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanyen committed Oct 5, 2018
1 parent eeb90da commit de4268a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
# include <map>
# include <string>
# include <vector>
# if defined(_WINDOWS)
# include <winsock2.h>
# else
# ifndef _WINDOWS
# include <poll.h>
# endif
#endif
Expand Down Expand Up @@ -127,8 +125,10 @@ namespace XmlRpc {

// Minimum number of free file descriptors before rejecting clients.
static const int FREE_FD_BUFFER;
#ifndef _WINDOWS
// List of all file descriptors, used for counting open files.
std::vector<struct pollfd> pollfds;
#endif
};
} // namespace XmlRpc

Expand Down
2 changes: 2 additions & 0 deletions utilities/xmlrpcpp/src/XmlRpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <string.h>
#if !defined(_WINDOWS)
# include <sys/resource.h>
#else
# include <winsock2.h>
#endif

using namespace XmlRpc;
Expand Down

0 comments on commit de4268a

Please sign in to comment.