etcimon / libasync

Cross-platform event loop library of asynchronous objects
MIT License
147 stars 30 forks source link

Use previous declaration of timespec for windows #61

Closed dazoe closed 8 years ago

dazoe commented 8 years ago

Looks a bit ugly but it fixes the windows build.

MoritzMaxeiner commented 8 years ago

Windows does not have kqueue in the first place AFAIK. It's my fault for not remembering that dub (by default) compiles all modules on any platform, regardless of whether they are actually imported. A less LOC intensive fix would be just moving the import into the static if. Please try that.

etcimon commented 8 years ago

Thanks for reporting =)