*
*/
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include "conn.h"
+#if SIZEOF_SOCKLEN_T - 0 == 0
+#define socklen_t int
+#endif
+
extern int verbose;
/* Map an NFS version into the corresponding Mountd version */
if (sock != -1) {
if (caddr) {
/* Get the address of our end of this connection */
- int len = sizeof(*caddr);
+ socklen_t len = sizeof(*caddr);
if (getsockname(sock, caddr, &len) != 0)
caddr->sin_family = 0;
}