Skip to content

Commit

Permalink
Merge pull request #73 from barracuda156/fix_types
Browse files Browse the repository at this point in the history
test_tcp_port: ensure no type error on macOS
  • Loading branch information
HenrikBengtsson committed Jan 17, 2024
2 parents 194cdf3 + c3fba76 commit 885568a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r/src/test_tcp_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
#include <netinet/in.h>
#endif

#ifdef __APPLE__
#ifndef u_int32_t
typedef uint32_t u_int32_t;
#endif
#endif

// Adopted from https://github.com/ropensci/ssh/blob/master/src/tunnel.c
// which is released under the MIT license
static int test_tcp_port(int port) {
Expand Down

0 comments on commit 885568a

Please sign in to comment.