Re: plugin-util.c:319: `MAP_FAILED' undeclared (first use in this fun ction)
- From: "J.H.M. Dassen (Ray)" <dm zensunni demon nl>
- To: "'gnumeric-list gnome org'" <gnumeric-list gnome org>
- Subject: Re: plugin-util.c:319: `MAP_FAILED' undeclared (first use in this fun ction)
- Date: Fri, 11 Jan 2002 13:08:40 +0100
On Fri, Jan 11, 2002 at 12:57:04 +0100, Gansser, Martin wrote:
I trying to compile Gnumeric 1.0.1 on HP-UX 10.20 and gcc gets the following
error:
plugin-util.c: In function `gnumeric_mmap_error_info':
plugin-util.c:319: `MAP_FAILED' undeclared (first use in this function)
On GNU/Linux, MAP_FAILED is defined in <sys/mman.h>.
Apparently, plugin-util.c could do with the same workaround as
plugins/gb/plugin.c :
#ifndef MAP_FAILED
/* Someone needs their head examining - BSD ? */
# define MAP_FAILED ((void *)-1)
#endif
HTH,
Ray
--
"Never trust a poll you haven't rigged yourself."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]