Fix include order to ensure that FD_SETSIZE from the compat/fdsetsize.h is set before it is set by sys/select.h (included by stdlib.h). --- helpers/ntlm_auth/smb_lm/smbval/rfcnb-util.c.orig Mon May 3 16:17:35 2010 +++ helpers/ntlm_auth/smb_lm/smbval/rfcnb-util.c Mon May 3 16:21:23 2010 @@ -23,12 +23,11 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include - #include "std-includes.h" #include "rfcnb-priv.h" #include "rfcnb-util.h" +#include +#include #include "rfcnb-io.h" #include --- helpers/ntlm_auth/smb_lm/smbval/session.c.orig Sun May 2 12:47:07 2010 +++ helpers/ntlm_auth/smb_lm/smbval/session.c Mon May 3 16:20:53 2010 @@ -23,9 +23,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include - int RFCNB_errno = 0; int RFCNB_saved_errno = 0; #define RFCNB_ERRNO @@ -34,6 +31,8 @@ #include #include "rfcnb-priv.h" #include "rfcnb-util.h" +#include +#include #include "rfcnb-io.h" #include "rfcnb.h"