Skip to content

Commit

Permalink
Merge pull request #33 from andreacasalino/LostbBlizzard-PR
Browse files Browse the repository at this point in the history
fixed errors when using wasm emscripten.
  • Loading branch information
andreacasalino authored Dec 23, 2023
2 parents 959531d + b11ede8 commit 54a7653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/src/SocketId.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <winsock2.h>
#include <ws2ipdef.h>
#include <ws2tcpip.h>
#elif defined(__linux__) || defined(__APPLE__)
#elif defined(__unix__) || defined(__APPLE__)
#include <arpa/inet.h>
#include <errno.h>
#include <string.h> //memset
Expand Down
4 changes: 3 additions & 1 deletion src/src/core/Receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include <MinimalSocket/core/Receiver.h>

#include "../SocketAddress.h"

#ifndef _WIN32
#include <sys/time.h>
#endif
namespace MinimalSocket {
std::unique_ptr<std::scoped_lock<std::mutex>>
ReceiverBase::lazyUpdateReceiveTimeout(const Timeout &timeout) {
Expand Down

0 comments on commit 54a7653

Please sign in to comment.