sys/time.h warning
Ulrich Drepper
drepper@redhat.com
Wed Feb 14 14:56:00 GMT 2001
Andreas Schwab <schwab@suse.de> writes:
> When compiling with _SVID_SOURCE we get a warning in <sys/time.h> about
> struct timezone declared inside parameter list. Either we should make the
> definition of struct timezone __USE_MISC or use __timezone_ptr_t in the
> declaration of settimeofday. The patch implements the latter.
The patch is not correct. First, __timezone_ptr_t is already a
pointer, you added another *. Second, making the pointer const does
not work.
I've made the definition and the prototype now available under
__USE_BSD. I think this is correct. If not let me know.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list