*** ./lib/tpl.c.ORIG	Mon Jan 30 10:55:53 2012
--- ./lib/tpl.c	Mon Jan 30 11:09:23 2012
***************
*** 62,67 ****
--- 62,71 ----
  
  #include "tpl.h"
  
+ #ifndef MAP_FAILED
+ #define MAP_FAILED ((void *)-1)
+ #endif
+ 
  #define TPL_GATHER_BUFLEN 8192
  #define TPL_MAGIC "tpl"
  
