|
From: | Don Maghrak |
Subject: | Re: [Libunwind-devel] mincore is potentially unsafe on kernel's older than 2.6.21 |
Date: | Tue, 13 Jul 2010 20:08:07 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 |
On 7/13/2010 7:56 PM, Arun Sharma wrote:
On Tue, Jul 13, 2010 at 5:24 PM, Don Maghrak<address@hidden> wrote:Is there a way to have configure ensure that mincore is only used at linux 2.6.21 or later? For now we are undefining HAVE_MINCORE in our builds but that makes deployment on multiple systems difficult.A runtime check is probably too expensive. A compile time check fails if you compile on a new kernel and deploy on an old kernel.
agreed.
The attached patch should allow you to turn off HAVE_MINCORE via a configure time flag.
That was fast! Will give it a try. thank you! Don
-Arun
[Prev in Thread] | Current Thread | [Next in Thread] |