- include Winsock2.h for windows
- add a __BSD__ define for all bsd platforms if it doesn't exist.
This commit is contained in:
@@ -175,6 +175,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include <sys/types.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
#ifndef __BSD__
|
||||
#define __BSD__
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#define OS_STRING "freebsd"
|
||||
#elif defined(__OpenBSD__)
|
||||
|
Reference in New Issue
Block a user