linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: trevor-wfkQdcsGPFLk1uMJSBkQmQ@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: PIPE(2) Example Does Not Compile
Date: Mon, 30 Dec 2013 19:57:51 +1300	[thread overview]
Message-ID: <52C1196F.5060109@gmail.com> (raw)
In-Reply-To: <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 11/08/13 17:32, Trevor Bramwell wrote:
> Dear man-page maintainers,
> 
> I believe I found a bug in the PIPE(2) example code.
> 
> When trying to compile the example code, the following error was thrown:
> 
>     pipes.c: In function ‘main’:
>     pipes.c:10:5: error: unknown type name ‘pid_t’
>          pid_t cpid;
>          ^
> After adding the line:
> 
>     #include <sys/types.h>
> 
> The example compiled fine.
> 
> I compiled with:
> 
>     gcc -Wall -std=c99
> 
> Attached is a patch that append the line to include sys/types.h.
> ---
> manpage-version: 3.54-1
> gcc-version: gcc (Debian 4.8.2-1) 4.8.2
> 
> Let me know if you need any more info, or if this is not truly a bug.

Trevor,

Did I reply to this mail message already? I did apply your patch.

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

  parent reply	other threads:[~2013-12-30  6:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08  4:32 PIPE(2) Example Does Not Compile Trevor Bramwell
     [not found] ` <CADeGDptxvibs5GBdHszA9cQxxoyAkJw7uN9qSjNGT0PKe_+xgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-30  6:57   ` Michael Kerrisk (man-pages) [this message]
     [not found]     ` <52C1196F.5060109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-01 23:03       ` Trevor Bramwell
     [not found]         ` <CADeGDpsOWTz7ukrWkz6qBqWBJZ3FM2sXvtdZjCb4pJXPnokRVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-01 23:04           ` Michael Kerrisk (man-pages)
     [not found] <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q@mail.gmail.com>
     [not found] ` <CADeGDps-YEGmW2KcCh1ejaKHC+LuGKzrBVnM7Ty3XCqS5uNm0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-09  5:51   ` Michael Kerrisk (man-pages)

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=52C1196F.5060109@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=trevor-wfkQdcsGPFLk1uMJSBkQmQ@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 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).