Apache OpenOffice (AOO) Bugzilla – Issue 18065
FreeBSD-4.8: error in vcl/unx/source/app/salmain.cxx
Last modified: 2004-02-07 10:09:51 UTC
Error while compiling salmain.cxx: In file included from /home/q/work/cws_srx645_ooo11rc3/vcl/unx/source/app/salmain.cxx:71: /usr/include/sys/resource.h:58: error: field `ru_utime' has incomplete type /usr/include/sys/resource.h:59: error: field `ru_stime' has incomplete type /usr/include/sys/resource.h:119: error: 'int32_t' is used as a type, but is not defined as a type. Problem: /usr/include/sys/resource.h uses `struct timeval` in the definition of struct rusage. struct timeval is defined in /usr/include/sys/time.h, but <sys/time.h> is not included in the <sys/resource.h> header file. The following patch fixes this, but it doesn't make differences for the used OSVERSION. It is necessary to version this between FreeBSD 4.8 to 5.x, or it is ok to include the headers also in 5.x?
Created attachment 8362 [details] Patch for vcl/unx/source/app/salmain.cxx
Target 1.1.1
Hi Volker, The structure is defined in <sys/time.h> on 5-CURRENT. I saw the man and /usr/include/sys/time.h. on 5-CURRENT sys/time.h includes sys/_timeval.h and here, actually defined struct timeval. So you are correct.
pl->mh: please apply in next OOo CWS.
Committed to cws_srx645_ooo111fix1.
mark as verified.
close issue.