Project

General

Profile

« Previous | Next » 

Revision 12fbdf4d

Added by nobu (Nobuyoshi Nakada) over 3 years ago

Fix conflicting declaration on Solaris

SunC

"cont.c", line 24: identifier redeclared: madvise
        current : function(pointer to char, unsigned int, int) returning int
        previous: function(pointer to void, unsigned int, int) returning int : "/usr/include/sys/mman.h", line 232

GCC

cont.c:24:12: error: conflicting types for 'madvise'
   24 | extern int madvise(caddr_t, size_t, int);
      |            ^~~~~~~
In file included from cont.c:16:
/usr/include/sys/mman.h:232:12: note: previous declaration of 'madvise' was here
  232 | extern int madvise(void *, size_t, int);
      |            ^~~~~~~