diff options
Diffstat (limited to 'editors/openoffice.org-1.0/files/patch-gethostbyname_r')
-rw-r--r-- | editors/openoffice.org-1.0/files/patch-gethostbyname_r | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/editors/openoffice.org-1.0/files/patch-gethostbyname_r b/editors/openoffice.org-1.0/files/patch-gethostbyname_r new file mode 100644 index 000000000000..1a04cdae0174 --- /dev/null +++ b/editors/openoffice.org-1.0/files/patch-gethostbyname_r @@ -0,0 +1,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) + /* + |