diff options
author | Don Lewis <truckman@FreeBSD.org> | 2003-04-22 04:53:47 +0000 |
---|---|---|
committer | Don Lewis <truckman@FreeBSD.org> | 2003-04-22 04:53:47 +0000 |
commit | 7f10af3f5ca66cc6542bc3849aac66c1cf124258 (patch) | |
tree | f60d80c2cb7b5dc45f6eb1ab9638d92ecd97d36d /editors/openoffice-3/files/patch-sal+osl+unx+system.h | |
parent | Convert to new GNOME infrastructure, and sign over to gnome@. (diff) |
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
Notes
Notes:
svn path=/head/; revision=79437
Diffstat (limited to 'editors/openoffice-3/files/patch-sal+osl+unx+system.h')
-rw-r--r-- | editors/openoffice-3/files/patch-sal+osl+unx+system.h | 26 |
1 files changed, 22 insertions, 4 deletions
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 |