From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Vinson Lee <vlee@twitter.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] safe_macros: Include errno.h.
Date: Fri, 10 Feb 2012 09:24:59 +0800 [thread overview]
Message-ID: <4F3471EB.6060604@cn.fujitsu.com> (raw)
In-Reply-To: <1328828750-11079-1-git-send-email-vlee@twitter.com>
On 02/10/2012 07:05 AM, Vinson Lee wrote:
> Fix build regression introduced by commit
> d6a1f25137b0ac8704bd08cc4bc8af01cceaca0e.
>
> This patch fixes this build error on Ubuntu 11.10.
> safe_macros.c: In function ‘safe_strtol’:
> safe_macros.c:349:2: error: ‘errno’ undeclared (first use in this
> function)
> safe_macros.c:349:2: note: each undeclared identifier is reported only
> once for each function it appears in
> safe_macros.c:351:16: error: ‘ERANGE’ undeclared (first use in this
> function)
>
> Signed-off-by: Vinson Lee <vlee@twitter.com>
> ---
> lib/safe_macros.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/safe_macros.c b/lib/safe_macros.c
> index 4c8cbb7..31df0fd 100644
> --- a/lib/safe_macros.c
> +++ b/lib/safe_macros.c
> @@ -2,6 +2,7 @@
> #include <sys/mman.h>
> #include <sys/resource.h>
> #include <sys/stat.h>
> +#include <errno.h>
> #include <fcntl.h>
> #include <libgen.h>
> #include <limits.h>
ACK this.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2012-02-10 1:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 23:05 [LTP] [PATCH] safe_macros: Include errno.h Vinson Lee
2012-02-10 1:24 ` Wanlong Gao [this message]
2012-02-10 2:27 ` Caspar Zhang
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=4F3471EB.6060604@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=vlee@twitter.com \
/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.