Skip to content

Commit

Permalink
try to fix windows compile
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jul 12, 2011
1 parent 7106473 commit 7affa19
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions util/net/sock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ namespace mongo {
}
#else

string getAddrInfoStrError(int code) {
#if !defined(_WIN32)
return gai_strerror(code);
#else
/* gai_strerrorA is not threadsafe on windows. don't use it. */
return errnoWithDescription(code);
#endif
}


void disableNagle(int sock) {
int x = 1;

Expand All @@ -83,6 +73,16 @@ namespace mongo {

#endif

string getAddrInfoStrError(int code) {
#if !defined(_WIN32)
return gai_strerror(code);
#else
/* gai_strerrorA is not threadsafe on windows. don't use it. */
return errnoWithDescription(code);
#endif
}


// --- SockAddr

SockAddr::SockAddr(int sourcePort) {
Expand Down

0 comments on commit 7affa19

Please sign in to comment.