From: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] strptime.3: add #define to example to avoid implicit declaration of strptime
Date: Sat, 5 Jan 2008 21:04:15 -0600 [thread overview]
Message-ID: <20080106030415.GA32688@tapir> (raw)
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'
Carlo
---
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>
-
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2008-01-06 3:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-06 3:04 Carlo Marcelo Arenas Belon [this message]
2008-01-06 10:11 ` [PATCH] strptime.3: add #define to example to avoid implicit declaration of strptime Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080106030415.GA32688@tapir \
--to=carenas-kledwsohozojb6fo7hg9ng@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.