summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-1.0/files/patch-gethostbyname_r
blob: 1a04cdae01740fb46239e90dff2f1f882ebac202 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Index: sal/osl/unx/socket.c
===================================================================
RCS file: /cvs/porting/sal/osl/unx/socket.c,v
retrieving revision 1.22.10.1
diff -u -r1.22.10.1 socket.c
--- sal/osl/unx/socket.c	18 Aug 2003 15:12:26 -0000	1.22.10.1
+++ sal/osl/unx/socket.c	10 Sep 2006 03:18:08 -0000
@@ -836,7 +836,7 @@
 	const char *name, struct hostent *result,
 	char *buffer, int buflen, int *h_errnop)
 {
-#ifdef LINUX
+#if defined(LINUX) || (defined(FREEBSD) && (__FreeBSD_version >= 601103))
 	struct hostent *__result; /* will be the same as result */
 	int __error;
 	__error = gethostbyname_r (name, result, buffer, buflen,
Index: sal/osl/unx/system.c
===================================================================
RCS file: /cvs/porting/sal/osl/unx/system.c,v
retrieving revision 1.8
diff -u -r1.8 system.c
--- sal/osl/unx/system.c	16 Jul 2003 17:21:47 -0000	1.8
+++ sal/osl/unx/system.c	10 Sep 2006 03:18:08 -0000
@@ -371,6 +371,8 @@
 
 extern int h_errno;
 
+#if !defined(FREEBSD) || (__FreeBSD_version < 601103)
+
 struct hostent *gethostbyname_r(const char *name, struct hostent *result,
 								char *buffer, int buflen, int *h_errnop)
 {
@@ -459,6 +461,8 @@
 
   	return res;
 }
+#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */
+
 
 #if defined(MACOSX)
 /*