parrot/parrot — Issue #189: Build failure in alarm.c on Win32
Author: jnthn
Created: 2011-11-01 12:59:38+00:00
State: open

Current build fails on Windows with MSVC:

cl -I./include -I./include/pmc -nologo -GF -W4 -MD -Zi -DNDEBUG -Ox -GL -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -D_CRT_SECURE_NO_DEPRECATE -DHASATTRIBUTE_DEPRECATED -wd4101 -DHASATTRIBUTE_NORETURN -wd4101 -DDISABLE_GC_DEBUG=1 -DNDEBUG -MD -Zi -DNDEBUG -Ox -GL -fp:precise -wd4127 -wd4054 -wd4310 -Isrc -Isrc/ -Fosrc/alarm.obj -c src/alarm.c
alarm.c
src/alarm.c(22) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory

If I change that to just pull in time.h, it then complains about stuff in signal.h. It looks like this is related to the green_threads work. I'm surprised the branch got merged without consideration for Windows support; I'd have thought that "Windows probably does signal stuff very differently" woulda been an obvious thing to think about.