Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

Commit aa6658b

Browse files
committed
fix: added missing header
1 parent 638d708 commit aa6658b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

include/rconpp/utilities.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#pragma once
22

3+
#ifndef _WIN32
4+
#include <sys/types.h>
5+
#include <sys/socket.h>
6+
#endif
7+
38
#include <functional>
49

510
#include "export.h"

src/rconpp/utilities.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#ifdef _WIN32
44
#include <winsock2.h>
5-
#else
6-
#include <sys/socket.h>
75
#endif
86
#include <cstring>
97

@@ -47,7 +45,7 @@ rconpp::error_type rconpp::report_get_last_error() {
4745
last_error = WSAGetLastError();
4846
#else
4947
last_error = errno;
50-
#endif;
48+
#endif
5149

5250
std::cout << "Error code: " << last_error << "\n";
5351

0 commit comments

Comments
 (0)