Skip to content

Commit

Permalink
native: Make native library compile on Minix
Browse files Browse the repository at this point in the history
... not that we have Java there yet, but still.
  • Loading branch information
kohlschuetter committed Feb 15, 2024
1 parent 014dc8a commit 6537517
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions junixsocket-native/src/main/c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ int clock_gettime(int ignored CK_UNUSED, struct timespec *spec);
extern "C" {
#endif

#if defined(SOCK_CLOEXEC)
#define junixsocket_have_accept4
#define junixsocket_have_socket_cloexec
#if defined(__minix)
// Minix may have SOCKET_CLOEXEC, but no accept4
# define junixsocket_have_socket_cloexec
#elif defined(SOCK_CLOEXEC)
# define junixsocket_have_accept4
# define junixsocket_have_socket_cloexec
#endif

// Linux
Expand Down

0 comments on commit 6537517

Please sign in to comment.