Menu

#506 c99 errors

Feature Request
closed-fixed
5
2016-03-12
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

    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;
    >

     
  • Sebastian Pipping

    • status: open --> closed-fixed
    • Group: --> Feature Request
     
  • Sebastian Pipping

    Addressed by commit 2671b8bb9182cec4032df07b1d4574a6fcd06244, using void pointer though. I hope that's okay. Closing.

     

Log in to post a comment.