Skip to content

Commit

Permalink
[fix] Temporary fix to avoid build issue with PAGE_SIZE undefined rep…
Browse files Browse the repository at this point in the history
…orted by Bastien on his setup (need to refactof that part to remove this dep) (#89).
  • Loading branch information
svalat committed Mar 1, 2024
1 parent ba293ea commit 85a7ee2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/lib/core/SymbolSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
#include "SymbolSolver.hpp"

#ifdef __linux__
#include <sys/user.h>
#include <linux/binfmts.h>
#include <sys/user.h>
#include <linux/binfmts.h>
#ifndef PAGE_SIZE
//@note: on some system MAX_ARG_STRLEN is defined to PAGE_SIZE
//@todo: Find a better fix by removing completely the usage of
// MAX_ARG_STRLEN.
#define PAGE_SIZE 4096
#endif
#else
#define MAX_ARG_STRLEN 131072
#define MAX_ARG_STRLEN 131072
#endif


Expand Down

0 comments on commit 85a7ee2

Please sign in to comment.