On Jan 6, 2008 4:04 AM, Carlo Marcelo Arenas Belon <carenas@xxxxxxxxxxxxxx> wrote: > The example doesn't follow the guidelines given in the description and will > result in the following warning if compiled : > > In function 'main': > 13: warning: implicit declaration of function 'strptime' Hi Carlo, Thanks for your report. _GNU_SOURCE will do the job, but as documented in the man page, _XOPEN_SOURCE is the precise macro required. So I added that to the example program. The change will be in man-pages-2.76. Cheers, Michael > --- > diff -urp man-pages-2.74/man3/strptime.3 man-pages-2.74/man3/strptime.3 > --- man-pages-2.74/man3/strptime.3 2007-12-20 04:13:45.000000000 -0800 > +++ man-pages-2.74/man3/strptime.3 2008-01-05 18:46:04.000000000 -0800 > @@ -384,6 +384,7 @@ and > .BR strftime (3). > .sp > .nf > +#define _GNU_SOURCE > #include <stdio.h> > #include <stdlib.h> > #include <time.h> > -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug? Look here: http://www.kernel.org/doc/man-pages/reporting_bugs.html - To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html