summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-10-24 13:01:03 +0000
committerStefan Metzmacher <metze@samba.org>2007-10-25 15:53:09 +0200
commit800ca5179261af3137d319ad72507e26dc7c7d7f (patch)
tree963b71734f7afd86c5e4c8703554f4e2d5a3a9ec /source3/lib
parentcd486165e9825864cb73ea8b245195a4d28f1c73 (diff)
downloadsamba-800ca5179261af3137d319ad72507e26dc7c7d7f.tar.gz
samba-800ca5179261af3137d319ad72507e26dc7c7d7f.tar.bz2
samba-800ca5179261af3137d319ad72507e26dc7c7d7f.zip
[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 git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25718 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit b81d8bc43cd7167a5cd4b18c26ba3eecf75043eb)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/replace/system/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index 774776dca3..44a1dcc8e1 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/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;