diff options
author | truckman <truckman@FreeBSD.org> | 2003-04-22 12:53:47 +0800 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2003-04-22 12:53:47 +0800 |
commit | 355503632cbeca860c77ddb527a8ef7f9cbc8964 (patch) | |
tree | 559ee1179dd52047fa823aec8514d6705af7eb3a | |
parent | 2d461f105b4f89584c2c2aebd08e8d5841352a7c (diff) | |
download | freebsd-ports-gnome-355503632cbeca860c77ddb527a8ef7f9cbc8964.tar.gz freebsd-ports-gnome-355503632cbeca860c77ddb527a8ef7f9cbc8964.tar.zst freebsd-ports-gnome-355503632cbeca860c77ddb527a8ef7f9cbc8964.zip |
Port to __FreeBSD_version >= 500112 that now has getpw*_r() functions
that are incompatible with the older draft implementations supplied
with the OpenOffice source.
Approved by: mbr
34 files changed, 527 insertions, 204 deletions
diff --git a/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-1.1-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice-1.1/files/patch-sal+osl+unx+system.c b/editors/openoffice-1.1/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-1.1/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-1.1/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-1.1/files/patch-sal+osl+unx+system.h b/editors/openoffice-1.1/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-1.1/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-1.1/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-2.0-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-3-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice-3/files/patch-sal+osl+unx+system.c b/editors/openoffice-3/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-3/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-3/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-3/files/patch-sal+osl+unx+system.h b/editors/openoffice-3/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-3/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-3/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-1.1-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-1.1/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-2-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-2.0-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-2.0/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-2/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-2/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-2/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-2/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-2/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-2/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-2/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-2/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-3-RC/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-3-devel/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-3/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-3/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-3/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-3/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-3/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-3/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-3/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-3/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif diff --git a/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.c b/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.c index 2c5aba956f7c..e866f598af30 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.c +++ b/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.c @@ -1,15 +1,16 @@ ---- ../sal/osl/unx/system.c.orig Tue Aug 20 15:49:46 2002 -+++ ../sal/osl/unx/system.c Thu Apr 3 21:56:32 2003 -@@ -74,7 +74,7 @@ +--- ../sal/osl/unx/system.c.orig Tue Aug 20 08:49:46 2002 ++++ ../sal/osl/unx/system.c Mon Apr 21 02:42:21 2003 +@@ -74,7 +74,8 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if defined NETBSD || defined MACOSX || defined FREEBSD -+#if defined NETBSD || defined FREEBSD || defined MACOSX ++#if defined NETBSD || defined MACOSX || \ ++ (defined FREEBSD && (__FreeBSD_version < 500112)) #include <pwd.h> #include <sys/types.h> -@@ -134,7 +134,6 @@ +@@ -134,7 +135,6 @@ return res; } @@ -17,7 +18,7 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result) { -@@ -201,8 +200,8 @@ +@@ -201,8 +201,8 @@ return res; } @@ -27,7 +28,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer) { struct tm* res; -@@ -236,7 +235,8 @@ +@@ -236,7 +236,8 @@ return res; } @@ -37,7 +38,7 @@ #ifdef SCO #include <pwd.h> -@@ -712,3 +712,50 @@ +@@ -712,3 +713,50 @@ } #endif diff --git a/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.h b/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.h index c4e255952fc7..806e8f6c35cb 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.h +++ b/editors/openoffice.org-vcltesttool/files/patch-sal+osl+unx+system.h @@ -1,7 +1,10 @@ ---- ../sal/osl/unx/system.h.orig Wed Jun 5 16:24:19 2002 -+++ ../sal/osl/unx/system.h Sun Jan 12 15:48:03 2003 -@@ -205,6 +205,13 @@ +--- ../sal/osl/unx/system.h.orig Tue Aug 20 08:54:55 2002 ++++ ../sal/osl/unx/system.h Sat Apr 19 22:09:15 2003 +@@ -203,8 +203,16 @@ + # include <dlfcn.h> + # include <sys/filio.h> # include <sys/ioctl.h> ++# include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> +# include <sys/exec.h> @@ -14,7 +17,7 @@ # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD -@@ -216,12 +223,13 @@ +@@ -216,12 +224,13 @@ # elif BYTE_ORDER == PDP_ENDIAN # define _PDP_ENDIAN # endif @@ -33,3 +36,18 @@ #endif #ifdef SCO +@@ -569,12 +578,14 @@ + #endif + + #ifdef NO_PTHREAD_RTL ++#if !defined FREEBSD || (__FreeBSD_version < 500112) + struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); + extern struct spwd *getspnam_r(const char *name, struct spwd *result, + char *buffer, int buflen); + + 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) */ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); + #endif |