Index: samba-3.0.37/source/popt/popt.c =================================================================== --- samba-3.0.37.orig/source/popt/popt.c 2011-04-11 23:35:04.000000000 +0200 +++ samba-3.0.37/source/popt/popt.c 2011-04-11 23:35:10.000000000 +0200 @@ -10,13 +10,14 @@ #include "system.h" -#if HAVE_FLOAT_H +//#if HAVE_FLOAT_H #include -#endif +//#endif #include #include "findme.h" #include "poptint.h" +#include "../include/config.h" #ifdef MYDEBUG /*@unchecked@*/ @@ -388,7 +389,7 @@ sprintf(s, "%s/%s", con->execPath, item->argv[0]); argv[argc] = s; } else { - argv[argc] = findProgramPath(item->argv[0]); + argv[argc] = ""/*findProgramPath(item->argv[0])*/; } if (argv[argc++] == NULL) return POPT_ERROR_NOARG; @@ -1246,4 +1247,3 @@ return numargs; } -/*@=boundswrite@*/ Index: samba-3.0.37/source/modules/vfs_default.c =================================================================== --- samba-3.0.37.orig/source/modules/vfs_default.c 2011-04-11 23:35:08.000000000 +0200 +++ samba-3.0.37/source/modules/vfs_default.c 2011-04-11 23:35:10.000000000 +0200 @@ -977,7 +977,7 @@ START_PROFILE(syscall_linux_setlease); -#ifdef LINUX +#if defined(LINUX) && defined(HAVE_KERNEL_OPLOCKS_LINUX) /* first set the signal handler */ if(linux_set_lease_sighandler(fd) == -1) return -1;