Date: Tue, 9 Jul 2002 07:17:11 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Don Lewis <dl-freebsd@catspoiler.org> Cc: current@FreeBSD.org, <bde@FreeBSD.org> Subject: Re: struct stat and _POSIX_SOURCE Message-ID: <20020709070934.W4175-100000@gamplex.bde.org> In-Reply-To: <200207081246.g68Cjvwr000350@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Jul 2002, Don Lewis wrote: > Building OpenOffice is broken in -current because of a problem in > <sys/stat.h>. If _POSIX_SOURCE is defined, <sys/stat.h> does not > #include <sys/time.h> to get the definition of struct timespec, and it > substitutes alternate structure members for the struct timespec members. > Unfortunately it still attempts to pad the structure with bit fields > whose width is relies on the definition of struct timespec. Sorry, I haven't fixed this yet. I didn't know that anything important actually defines _POSIX_SOURCE. The fix should do something like including <sys/_timespec.h> to get a suitable variable of the struct. (I would prefer for <timespec.h> and <_timespec.h> to not exist. The struct has only 2 members so it is easier to repeat its declaration in a few places.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020709070934.W4175-100000>