Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/EmuFs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
#include <sstream>
#include <string>

// muslc defines those, but we want a typedef instead
#if defined(loff_t)
typedef loff_t __musl_loff_t;
#undef loff_t
typedef __musl_loff_t loff_t;
#endif

#include "AddressSpace.h"
#include "ReplaySession.h"
#include "core.h"
Expand Down
3 changes: 3 additions & 0 deletions src/ScopedFd.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#ifndef RR_SCOPED_FD_H_
#define RR_SCOPED_FD_H_

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
Expand Down
7 changes: 7 additions & 0 deletions src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@
#include "log.h"
#include "util.h"

// muslc defines those, but we want a typedef instead
#if defined(loff_t)
typedef loff_t __musl_loff_t;
#undef loff_t
typedef __musl_loff_t loff_t;
#endif

using namespace std;

#ifndef HAVE_TERMIOS2
Expand Down