diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-30 09:01:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-30 09:10:58 +0900 |
commit | 12fbdf4d4e52bafaeef6f923b8f357a39a37c02b (patch) | |
tree | 1eca222c11629f2959bebad903ebc4311eeee107 /mjit_worker.c | |
parent | ac8647bec12d5d3c0bc4b6a79d09a6a85d6628f1 (diff) | |
download | ruby-12fbdf4d4e52bafaeef6f923b8f357a39a37c02b.tar.gz |
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);
| ^~~~~~~
```
Diffstat (limited to 'mjit_worker.c')
0 files changed, 0 insertions, 0 deletions