Skip to content

Commit c6c8469

Browse files
committed
Only build CNIOOpenBSD on OpenBSD.
1 parent f53474d commit c6c8469

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/CNIOOpenBSD/include/CNIOOpenBSD.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
#ifndef C_NIO_OPENBSD_H
1515
#define C_NIO_OPENBSD_H
1616

17+
#if defined(__OpenBSD__)
1718
#include <sys/types.h>
1819
#include <sys/event.h>
20+
#include <pthread_np.h>
21+
#include <sys/types.h>
1922
#include <sys/socket.h>
2023
#include <sys/stat.h>
2124
#include <sys/time.h>
@@ -28,7 +31,6 @@
2831
#include <netinet/in.h>
2932
#include <netinet/ip.h>
3033
#include <pthread.h>
31-
#include <pthread_np.h>
3234
#include <stdbool.h>
3335

3436

@@ -96,3 +98,4 @@ extern const long CNIOOpenBSD_UDP_MAX_SEGMENTS;
9698
FTS *CNIOOpenBSD_fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **));
9799

98100
#endif
101+
#endif

0 commit comments

Comments
 (0)