* Re: include error in example code [not found] ` <F1C54C2B29AD45429DFA1538CDE11207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-12-02 19:56 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; only message in thread From: Michael Kerrisk (man-pages) @ 2015-12-02 19:56 UTC (permalink / raw) To: alikewmk Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA On 11/07/2015 02:05 AM, alikewmk wrote: > Hello, > > The example code under > http://man7.org/linux/man-pages/man7/aio.7.html lacks a include file > `fcntl.h`, since the code is using `O_RDONLY` in `open()` function, > according to the GNU document here > (http://www.gnu.org/software/libc/manual/html_node/Opening-and-Closing-Files.html), > it needs to be included. > > I tested the code after including the `fcntl.h` file and it worked.> > Thanks. :) Thanks, Meikun. I added that header file to the example code. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- 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 ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-02 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <F1C54C2B29AD45429DFA1538CDE11207@gmail.com>
[not found] ` <F1C54C2B29AD45429DFA1538CDE11207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-02 19:56 ` include error in example code Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).