More compatibility fixes with endian.h

master
Nicolas Favre-Felix 13 years ago
parent d4d0ba4c4b
commit 227e1809e4

@ -15,11 +15,17 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/param.h>
#ifdef __APPLE__
#include <machine/endian.h>
#else
#ifdef BSD /* depends on sys/param.h */
#include <sys/endian.h>
#else
#include <endian.h>
#endif
#endif
/**
* This code uses the WebSocket specification from RFC 6455.

Loading…
Cancel
Save