#506 c99 errors

open
Greg Stein
5
2012-10-13
2012-10-13
Anonymous
No

gcc -I./lib -I. -std=c99 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c
xmlwf/unixfilemap.c: In function ‘filemap’:
xmlwf/unixfilemap.c:54: error: ‘caddr_t’ undeclared (first use in this function)
xmlwf/unixfilemap.c:54: error: (Each undeclared identifier is reported only once
xmlwf/unixfilemap.c:54: error: for each function it appears in.)
xmlwf/unixfilemap.c:54: error: expected ‘)’ before numeric constant
xmlwf/unixfilemap.c:55: error: too few arguments to function ‘mmap’
xmlwf/unixfilemap.c:62: error: expected ‘)’ before ‘p’
xmlwf/unixfilemap.c:62: error: too few arguments to function ‘munmap’
make: *** [xmlwf/unixfilemap.o] Error 1

patch will be coming.

Discussion


  • Anonymous
    2012-10-13

    patch :
    Index: xmlwf/unixfilemap.c
    ===================================================================
    RCS file: /cvsroot/expat/expat/xmlwf/unixfilemap.c,v
    retrieving revision 1.9
    diff -r1.9 unixfilemap.c
    19a20,21
    > typedef __caddr_t caddr_t;
    >