Re: plugin-util.c:319: `MAP_FAILED' undeclared (first use in this fun ction)



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]