Skip to content

Commit

Permalink
target: Fixed a bug when -D_FILE_OFFSET_BITS=64 is given
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Dec 29, 2023
1 parent 3e4afed commit dd70076
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/target/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
#include <stdarg.h>
#include <unistd.h>

/* Fixup for when _FILE_OFFSET_BITS == 64 as unistd.h screws this up for us */
#if defined(lseek)
#undef lseek
#endif

target_s *target_list = NULL;

#define STDOUT_READ_BUF_SIZE 64U
Expand Down

0 comments on commit dd70076

Please sign in to comment.