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



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

OK, a new error appears:
...
stf-parse.c:32: wctype.h: Keine Datei und kein Verzeichnis
gmake[3]: *** [stf-parse.o] Error 1

thanks Martin

-----Ursprüngliche Nachricht-----
Von: J.H.M. Dassen (Ray) [mailto:dm zensunni demon nl]
Gesendet am: Freitag, 11. Januar 2002 13:09
An: 'gnumeric-list gnome org'
Betreff: 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."
_______________________________________________
gnumeric-list mailing list
gnumeric-list gnome org
http://mail.gnome.org/mailman/listinfo/gnumeric-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]