Ok, so then there's basically no reason for it not to work.. The source very clearly includes errno.h, which should indirectly include asm-generic/errno.h.
If you pass this file to 'cpp', you should see 115 on the last line:
Can I do something about it on a ./configure stage? Maybe "ln -s" every other header to where it should be on Debian-based (one of those where love2d understands where and what to search) systems?