From 334b288831c1730cb88fb431f684b9062e139efd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 Oct 2007 19:12:39 +0000 Subject: r25487: Try fix the build - fix socklen_t and sa_family_t. Jeremy. (This used to be commit 2cab82563409eca79ac5f518a3dcb8cdbdcded7e) --- source3/lib/replace/system/network.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h index 1b442dd602..fc21a3e99a 100644 --- a/source3/lib/replace/system/network.h +++ b/source3/lib/replace/system/network.h @@ -118,8 +118,16 @@ char *rep_inet_ntoa(struct in_addr ip); #define INET6_ADDRSTRLEN 46 #endif +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + #ifndef HAVE_SA_FAMILY_T typedef unsigned short int sa_family_t; #endif +#ifndef HAVE_SOCKADDR_STORAGE +#define sockaddr_storage sockaddr +#endif + #endif -- cgit