From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB
Date: Fri, 2 Jun 2017 09:33:45 +0800 [thread overview]
Message-ID: <5930C079.5010307@cn.fujitsu.com> (raw)
In-Reply-To: <1496226952-15147-1-git-send-email-yangx.jy@cn.fujitsu.com>
Hi Cyril, Jan
Ping. :-)
Compilation failed on RHEL5.11GA.
Thanks,
Xiao Yang
On 2017/05/31 18:35, Xiao Yang wrote:
> Compilation failed on some older distributions due to undefined
> MAP_HUGETLB, so we include lapi/mmap.h to fix it.
>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
> testcases/kernel/numa/support_numa.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/testcases/kernel/numa/support_numa.c b/testcases/kernel/numa/support_numa.c
> index b6aa8bd..4904cc5 100644
> --- a/testcases/kernel/numa/support_numa.c
> +++ b/testcases/kernel/numa/support_numa.c
> @@ -39,6 +39,7 @@
> #include <sys/stat.h>
> #include <sys/mman.h>
> #include <fcntl.h>
> +#include "lapi/mmap.h"
>
> /* Global Variables */
> #define MB (1<<20)
next prev parent reply other threads:[~2017-06-02 1:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-31 10:35 [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB Xiao Yang
2017-06-02 1:33 ` Xiao Yang [this message]
2017-06-02 11:31 ` Jan Stancek
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=5930C079.5010307@cn.fujitsu.com \
--to=yangx.jy@cn.fujitsu.com \
--cc=ltp@lists.linux.it \
/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.