Skip to content

Commit

Permalink
Revert "Revert "move the winsock2.h into cpp."" (ros#1588)
Browse files Browse the repository at this point in the history
This reverts commit e3e2bfb.
  • Loading branch information
kejxu authored and tahsinkose committed Apr 15, 2019
1 parent 998ba3e commit cb04f81
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 cb04f81

Please sign in to comment.