diff -Naur -p0 yap-6.2.2/C/c_interface.c nyap-6.2.2/C/c_interface.c --- yap-6.2.2/C/c_interface.c 2011-10-01 13:04:16.000000000 -0700 +++ nyap-6.2.2/C/c_interface.c 2013-01-14 14:03:18.318705138 -0800 @@ -2299 +2299 @@ YAP_CompileClause(Term t) - int mod = CurrentModule; + Term mod = CurrentModule; diff -Naur -p0 yap-6.2.2/configure.in nyap-6.2.2/configure.in --- yap-6.2.2/configure.in 2011-10-23 15:11:26.000000000 -0700 +++ nyap-6.2.2/configure.in 2013-01-14 14:01:08.498704045 -0800 @@ -1100,0 +1101 @@ dnl Linux has both elf and a.out, in thi + YAPLIB_LD=$SHLIB_LD diff -Naur -p0 yap-6.2.2/library/dialect/swi/fli/blobs.c nyap-6.2.2/library/dialect/swi/fli/blobs.c --- yap-6.2.2/library/dialect/swi/fli/blobs.c 2010-12-02 03:47:28.000000000 -0800 +++ nyap-6.2.2/library/dialect/swi/fli/blobs.c 2013-01-14 14:04:35.118703664 -0800 @@ -22,0 +23,4 @@ +/* for freeBSD9.1 */ +#define _WITH_DPRINTF +#include +