--- replex.c.orig	2007-06-19 10:30:08.000000000 +0100
+++ replex.c	2007-12-20 16:49:43.000000000 +0000
@@ -41,6 +41,10 @@
 #include "replex.h"
 #include "pes.h"
 
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif 
+
 static int replex_all_set(struct replex *rx);
 
 void overflow_exit(struct replex *rx)
