Bug #3593
closedcont.cで"PAGE_SIZE" redefined
Description
=begin
cont.cで以下のようなwarningがでます。
ifndefを使うべきか、RB_PAGE_SIZEなどと別の名前を使うべきか迷ったので、対処お願いします。
../../ruby/cont.c:45:1: warning: "PAGE_SIZE" redefined
In file included from /usr/include/sys/param.h:110,
from /usr/include/pthread_np.h:34,
from ../../ruby/thread_pthread.h:16,
from ../../ruby/vm_core.h:29,
from ../../ruby/cont.c:13:
/usr/include/machine/param.h:100:1: warning: this is the location of the previous definition
../../ruby/cont.c:46:1: warning: "PAGE_MASK" redefined
/usr/include/machine/param.h:101:1: warning: this is the location of the previous definition
../../ruby/cont.c:45:1: warning: "PAGE_SIZE" redefined
In file included from /usr/include/sys/param.h:111,
from /usr/include/pthread_np.h:35,
from ../../ruby/thread_pthread.h:17,
from ../../ruby/vm_core.h:30,
from ../../ruby/cont.c:14:
/usr/include/machine/param.h:100:1: warning: this is the location of the previous definition
../../ruby/cont.c:46:1: warning: "PAGE_MASK" redefined
/usr/include/machine/param.h:101:1: warning: this is the location of the previous definition
../../ruby/cont.c: In function 'fiber_initialize_machine_stack_context':
../../ruby/cont.c:567: warning: assignment from incompatible pointer type
=end