Skip to content

Commit 9d01f09

Browse files
authored
add missing headers (#290)
There were some headers missing, which lead to build problems on some platforms.
1 parent 8ad298f commit 9d01f09

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

include/ur_client_library/comm/socket_t.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ static inline int ur_close(socket_t s)
4646

4747
#else // _WIN32
4848

49+
# include <arpa/inet.h>
4950
# include <netdb.h>
51+
# include <sys/select.h>
5052
# include <sys/socket.h>
53+
# include <sys/time.h>
5154
# include <sys/types.h>
5255
# include <unistd.h>
5356

include/ur_client_library/comm/tcp_server.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <chrono>
3434
#include <functional>
3535
#include <thread>
36+
#include <vector>
3637

3738
#include "ur_client_library/comm/socket_t.h"
3839

include/ur_client_library/exceptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
# ifdef ERROR
4242
# undef ERROR
4343
# endif // ERROR
44+
#else
45+
# include <sys/time.h>
4446
#endif
4547

4648
namespace urcl

include/ur_client_library/queue/atomicops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ __declspec(dllimport) int __stdcall ReleaseSemaphore(void* hSemaphore, long lRel
408408
}
409409
#elif defined(__MACH__)
410410
# include <mach/mach.h>
411-
#elif defined(__unix__)
411+
#elif defined(__unix__) || defined(__VXWORKS__)
412412
# include <semaphore.h>
413413
#endif
414414

@@ -543,7 +543,7 @@ class Semaphore
543543
}
544544
}
545545
};
546-
#elif defined(__unix__)
546+
#elif defined(__unix__) || defined(__VXWORKS__)
547547
//---------------------------------------------------------
548548
// Semaphore (POSIX, Linux)
549549
//---------------------------------------------------------

0 commit comments

Comments
 (0)