Permalink
Browse files

Fix building of mongoose under FreeBSD

* sys/socket.h should be included when building under FreeBSD
  • Loading branch information...
1 parent 8428f36 commit 04697bb807c252458f6b4743ff8baa6e896187b9 @dnaeon committed Sep 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mongoose.c
View
@@ -18,6 +18,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
+#if defined(__FreeBSD__)
+#include <sys/socket.h>
@cpq
cpq Sep 2, 2012

Please remove the conditional and move this include to the section with the rest of UNIX includes.

+#endif
+
#if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
#else

0 comments on commit 04697bb

Please sign in to comment.