Skip to content

Commit

Permalink
[core] Fix FTBFS on Debian kfreebsd
Browse files Browse the repository at this point in the history
Fixes: #2066
  • Loading branch information
bigon authored and maxsharabayko committed Jul 30, 2021
1 parent ea4edff commit 158f35d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions srtcore/epoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ modified by
#include <cstring>
#include <iterator>

#if defined(__FreeBSD_kernel__)
#include <sys/event.h>
#endif

#include "common.h"
#include "epoll.h"
#include "logging.h"
Expand Down
2 changes: 1 addition & 1 deletion srtcore/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ written by

# include <sys/endian.h>

#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)

# include <sys/endian.h>

Expand Down

0 comments on commit 158f35d

Please sign in to comment.