Skip to content

Commit db437e1

Browse files
committed
darwin fix
1 parent 759c41a commit db437e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/simple_socket/util/net_byteorder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <WinSock2.h>
44
#else
55
#include <arpa/inet.h>
6+
#include <netinet/in.h>
67
#endif
78

89
#include "simple_socket/util/net_byteorder.hpp"
@@ -15,8 +16,8 @@ uint16_t simple_socket::ss_ntohs(uint16_t netshort) {
1516
return ::ntohs(netshort);
1617
}
1718

18-
uint32_t simple_socket::ss_htonl(uint32_t netlong) {
19-
return ::htonl(netlong);
19+
uint32_t simple_socket::ss_htonl(uint32_t hostlong) {
20+
return ::htonl(hostlong);
2021
}
2122

2223
uint32_t simple_socket::ss_ntohl(uint32_t netlong) {

0 commit comments

Comments
 (0)