Skip to content

Commit

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

using namespace XmlRpc;
Expand Down

0 comments on commit e3e2bfb

Please sign in to comment.