{"action":"created","issue":{"url":"https://api.github.com/repos/wiire/pixiewps/issues/15","labels_url":"https://api.github.com/repos/wiire/pixiewps/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/wiire/pixiewps/issues/15/comments","events_url":"https://api.github.com/repos/wiire/pixiewps/issues/15/events","html_url":"https://github.com/wiire/pixiewps/pull/15","id":111051345,"number":15,"title":"Make it compile on FreeBSD.","user":{"login":"fbettag","id":79918,"avatar_url":"https://avatars.githubusercontent.com/u/79918?v=3","gravatar_id":"","url":"https://api.github.com/users/fbettag","html_url":"https://github.com/fbettag","followers_url":"https://api.github.com/users/fbettag/followers","following_url":"https://api.github.com/users/fbettag/following{/other_user}","gists_url":"https://api.github.com/users/fbettag/gists{/gist_id}","starred_url":"https://api.github.com/users/fbettag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbettag/subscriptions","organizations_url":"https://api.github.com/users/fbettag/orgs","repos_url":"https://api.github.com/users/fbettag/repos","events_url":"https://api.github.com/users/fbettag/events{/privacy}","received_events_url":"https://api.github.com/users/fbettag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-12T20:39:00Z","updated_at":"2015-10-14T16:44:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wiire/pixiewps/pulls/15","html_url":"https://github.com/wiire/pixiewps/pull/15","diff_url":"https://github.com/wiire/pixiewps/pull/15.diff","patch_url":"https://github.com/wiire/pixiewps/pull/15.patch"},"body":"I've taken the liberty to make this compile on FreeBSD (10.2-RELEASE tested)."},"comment":{"url":"https://api.github.com/repos/wiire/pixiewps/issues/comments/148112521","html_url":"https://github.com/wiire/pixiewps/pull/15#issuecomment-148112521","issue_url":"https://api.github.com/repos/wiire/pixiewps/issues/15","id":148112521,"user":{"login":"wiire","id":11740772,"avatar_url":"https://avatars.githubusercontent.com/u/11740772?v=3","gravatar_id":"","url":"https://api.github.com/users/wiire","html_url":"https://github.com/wiire","followers_url":"https://api.github.com/users/wiire/followers","following_url":"https://api.github.com/users/wiire/following{/other_user}","gists_url":"https://api.github.com/users/wiire/gists{/gist_id}","starred_url":"https://api.github.com/users/wiire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiire/subscriptions","organizations_url":"https://api.github.com/users/wiire/orgs","repos_url":"https://api.github.com/users/wiire/repos","events_url":"https://api.github.com/users/wiire/events{/privacy}","received_events_url":"https://api.github.com/users/wiire/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T16:44:03Z","updated_at":"2015-10-14T16:44:03Z","body":"Yes, sorry I didn't know what that directive was there for. To keep the `features.h` present, even if it is not strictly necessary, I see two alternatives:\r\n\r\ninclude it, like it was done for Mac OS:\r\n```\r\n#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))\r\n# include <sys/param.h>\r\n# if defined(BSD) || (defined(__APPLE__) && defined(__MACH__))\r\n#  include \"../include/features.h\"\r\n# else\r\n#  include <features.h>\r\n# endif\r\n#endif\r\n```\r\n\r\nor get rid of it on *BSD OS:\r\n```\r\n#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))\r\n# include <sys/param.h>\r\n# if defined(__APPLE__) && defined(__MACH__)\r\n#  include \"../include/features.h\"\r\n# elif(BSD)\r\n/* BSD (DragonFly BSD, FreeBSD, OpenBSD, NetBSD)\r\n   Nothing to include */\r\n# else\r\n#  include <features.h>\r\n# endif\r\n#endif\r\n```\r\n\r\nI used this as a reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system\r\n\r\nI assume you use __Clang/LLVM__ as opposed to __GCC__? Anyway let me know what do you think it's best or if you have any suggestion."}}