Skip to content

Commit

Permalink
[easylog] fix compile error in freeBSD (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 13, 2024
1 parent 5d2f3f9 commit 8fec9b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/ylt/easylog/record.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@

#include "ylt/util/time_util.h"
#ifdef __linux__
#include <sys/syscall.h>
#include <unistd.h>
#endif
#if __has_include(<memory_resource>)
#include <memory_resource>
#endif
#if defined(__linux__) || defined(__FreeBSD__)
#include <sys/syscall.h>
#elif defined(__rtems__)
#include <rtems.h>
#endif
#include <sstream>
#include <string>
#include <string_view>
Expand Down

0 comments on commit 8fec9b1

Please sign in to comment.