summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-24 13:01:03 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:26 +0100
commit31569f1c881a735ef3db173ef57881540b0c5537 (patch)
tree87a64e9516f23b6182495c48e7f9acb31dbc2c12 /source4/lib/replace/system
parent582496f5d0e13e514e9c7cb02b138e730b8377d0 (diff)
downloadsamba-31569f1c881a735ef3db173ef57881540b0c5537.tar.gz
samba-31569f1c881a735ef3db173ef57881540b0c5537.tar.bz2
samba-31569f1c881a735ef3db173ef57881540b0c5537.zip
r25718: [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types metze (This used to be commit 8b92b811015d0855efe3cf4c58cd08e3654f8e88)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index 774776dca3..44a1dcc8e1 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -202,10 +202,12 @@ const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size);
#endif
#ifndef HAVE_SOCKLEN_T
+#define HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
#ifndef HAVE_SA_FAMILY_T
+#define HAVE_SA_FAMILY_T
typedef unsigned short int sa_family_t;
#endif
@@ -220,6 +222,7 @@ typedef unsigned short int sa_family_t;
#endif
#ifndef HAVE_STRUCT_ADDRINFO
+#define HAVE_STRUCT_ADDRINFO
struct addrinfo {
int ai_flags;
int ai_family;