Fix OpenBSD issues
It seems macro '__linux__’ is not active on OpenBSD - see http://www.dev.etlegacy.com/projects/etlegacy/repository/revisions/1b7d0d9ce3aa4d496679b296974fdcf719e7d09d/diff/src/game/g_lua.h
1. There are some locations in the code where the '__linux__’ macro is used only! (simple text search in /src '__linux__’)
2. There is '__FreeBSD_kernel__’ (q_plattform.c 185) and '__BSD__’ (net_ip.c 1562) defined. Isn’t this the same?
#4 Updated by IR4T4 almost 5 years ago
Why wont we just add:
#if defined('__BSD__’) || defined('__FreeBSD_kernel__’)
? Without the ' signs ofc..
I know its an ugly solution but, still prettyer than quadtrillion new macros..
I’m not sure if we can do that w/o modifing more in q_platform.h. '__BSD__’ macro (which is kind of opposite case of macro '__linux__’ is not active on OpenBSD) doesn’t seem available on all BSD platforms - we set it explicitly in current line 258 of q_plattform.h.