File rekall-flex-glibc27.diff of Package rekall
--- libs/el32/SConscript
+++ libs/el32/SConscript
@@ -40,7 +40,7 @@ env = rb.environment ()
if rkConfig.mode != 'win' :
- env.Append (LEXFLAGS = '-Pel_yy')
+ env.Append (LEXFLAGS = '-Pel_yy --nounistd')
env.Append (YACCFLAGS = '-pel_yy')
env.CFile ('lex.el_yy.c', 'el.l')
env.CFile ('el.tab.cpp', 'el.y')
--- libs/el32/el.l
+++ libs/el32/el.l
@@ -8,6 +8,8 @@
#define read(f,b,l) el_read(b,l)
#define output(c)
+extern "C" { extern int isatty(int desc); }
+
static void comment () ;
static void string (int) ;