michael@644: Index: src/params.h michael@644: --- src/params.h.orig 2011-11-23 12:08:11.000000000 +0100 michael@644: +++ src/params.h 2011-11-24 09:04:33.000000000 +0100 michael@644: @@ -70,15 +70,15 @@ michael@644: * notes above. michael@644: */ michael@644: #ifndef JOHN_SYSTEMWIDE michael@644: -#define JOHN_SYSTEMWIDE 0 michael@644: +#define JOHN_SYSTEMWIDE 1 michael@644: #endif michael@644: michael@644: #if JOHN_SYSTEMWIDE michael@644: #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */ michael@644: -#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john" michael@644: +#define JOHN_SYSTEMWIDE_EXEC "@l_prefix@/libexec/john" michael@644: #endif michael@644: #ifndef JOHN_SYSTEMWIDE_HOME michael@644: -#define JOHN_SYSTEMWIDE_HOME "/usr/share/john" michael@644: +#define JOHN_SYSTEMWIDE_HOME "@l_prefix@/etc/john" michael@644: #endif michael@644: #define JOHN_PRIVATE_HOME "~/.john" michael@644: #endif michael@644: Index: src/recovery.c michael@644: --- src/recovery.c.orig 2011-03-20 16:02:41.000000000 +0100 michael@644: +++ src/recovery.c 2011-11-24 09:04:49.000000000 +0100 michael@644: @@ -3,7 +3,9 @@ michael@644: * Copyright (c) 1996-2003,2005,2006,2009,2010 by Solar Designer michael@644: */ michael@644: michael@644: +#ifndef __FreeBSD__ michael@644: #define _XOPEN_SOURCE 500 /* for fdopen(3), fileno(3), fsync(2), ftruncate(2) */ michael@644: +#endif michael@644: #include michael@644: #include michael@644: #include