diff options
author | maho <maho@FreeBSD.org> | 2006-08-07 08:06:40 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2006-08-07 08:06:40 +0800 |
commit | c320206da6310d58770577258747c22bd5cba24c (patch) | |
tree | 8118ab4a437f11be9c234a1075141de545675b2d /editors/openoffice.org-2-RC | |
parent | 93e222d8a49527678610d889ec1978db2c241dfe (diff) | |
download | freebsd-ports-graphics-c320206da6310d58770577258747c22bd5cba24c.tar.gz freebsd-ports-graphics-c320206da6310d58770577258747c22bd5cba24c.tar.zst freebsd-ports-graphics-c320206da6310d58770577258747c22bd5cba24c.zip |
Fix build for __FreeBSD_version >= 601103
and discard support for __FreeBSD_version < 700015
Discussed with: ume
Diffstat (limited to 'editors/openoffice.org-2-RC')
-rw-r--r-- | editors/openoffice.org-2-RC/files/patch-i65512 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editors/openoffice.org-2-RC/files/patch-i65512 b/editors/openoffice.org-2-RC/files/patch-i65512 index 31a5566f164..ab5cd23d6c0 100644 --- a/editors/openoffice.org-2-RC/files/patch-i65512 +++ b/editors/openoffice.org-2-RC/files/patch-i65512 @@ -5,7 +5,7 @@ char *buffer, int buflen, int *h_errnop) { -#ifdef LINUX -+#if defined(LINUX) || (defined(FREEBSD) && ((__FreeBSD_version >= 700015) || (__FreeBSD_version >= 601103))) ++#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, @@ -15,7 +15,7 @@ } #endif /* defined SCO */ -+#if !defined(FREEBSD) || (__FreeBSD_version < 700015) || (__FreeBSD_version < 601103) ++#if !defined(FREEBSD) || (__FreeBSD_version < 601103) + extern int h_errno; @@ -24,7 +24,7 @@ return res; } -+#endif /* !defined(FREEBSD) || (__FreeBSD_version < 700015) */ ++#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ #if defined(MACOSX) /* @@ -34,10 +34,10 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer); struct tm *gmtime_r(const time_t *timep, struct tm *buffer); #endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */ -+#if !defined(FREEBSD) || (__FreeBSD_version < 700015) || (__FreeBSD_version < 601103) ++#if !defined(FREEBSD) || (__FreeBSD_version < 601103) struct hostent *gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop); -+#endif /* !defined(FREEBSD) || (__FreeBSD_version < 700015) */ ++#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ #endif #endif /* __OSL_SYSTEM_H__ */ @@ -55,7 +55,7 @@ + +-#if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) ++#if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) || \ -++ (defined(__FreeBSD__) && (__FreeBSD_version > 700016 || __FreeBSD_version > 601103)) +++ (defined(__FreeBSD__) && __FreeBSD_version > 601103) + #define _PR_HAVE_GETPROTO_R + #define _PR_HAVE_5_ARG_GETPROTO_R + #endif |