Skip to content

Commit

Permalink
[Test-macOS] Fix missing lseek64 on BSD systems
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Aug 3, 2024
1 parent 27abf0c commit b3af89b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/internal/filehandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ constexpr auto read = &_read;
#endif
#else
#include <unistd.h>

#if defined( __APPLE__ ) || defined( BSD ) || \
defined( __FreeBSD__ ) || defined( __NetBSD__ ) || defined( __OpenBSD__ ) || defined( __DragonFly__ )
constexpr auto lseek64 = &lseek;
#endif
#endif

namespace bit7z {
Expand Down

0 comments on commit b3af89b

Please sign in to comment.