sys/time.h warning
Andreas Schwab
schwab@suse.de
Thu Feb 15 01:33:00 GMT 2001
Ulrich Drepper <drepper@redhat.com> writes:
|> 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.
You are right, thanks.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Libc-hacker
mailing list