Fix compilation on FreeBSD.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2582 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+8
-2
@@ -154,7 +154,8 @@ typedef unsigned int wint_t;
|
|||||||
|
|
||||||
// errno error numbers. The values used don't matter, as long as they
|
// errno error numbers. The values used don't matter, as long as they
|
||||||
// don't conflict with existing errno error numbers.
|
// don't conflict with existing errno error numbers.
|
||||||
#if defined (PORT_WANT_ERRNO) && defined (USE_WINSOCK)
|
#ifdef PORT_WANT_ERRNO
|
||||||
|
# ifdef USE_WINSOCK
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# ifndef E2BIG
|
# ifndef E2BIG
|
||||||
# define E2BIG 0x01000001
|
# define E2BIG 0x01000001
|
||||||
@@ -422,7 +423,12 @@ typedef unsigned int wint_t;
|
|||||||
# ifndef ESOCKTNOSUPPORT
|
# ifndef ESOCKTNOSUPPORT
|
||||||
# define ESOCKTNOSUPPORT 0x01100005
|
# define ESOCKTNOSUPPORT 0x01100005
|
||||||
# endif
|
# endif
|
||||||
#endif /* defined (PORT_WANT_ERRNO) && defined (_MSC_VER) */
|
# elif defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||||
|
# ifndef EBADMSG
|
||||||
|
# define EBADMSG EIO
|
||||||
|
# endif
|
||||||
|
# endif /* defined (__FreeBSD__) || defined (__OpenBSD__) */
|
||||||
|
#endif /* defined (PORT_WANT_ERRNO) */
|
||||||
|
|
||||||
// Use SDL_INCLUDE and SDL_IMAGE_INCLUDE to portably include the SDL files
|
// Use SDL_INCLUDE and SDL_IMAGE_INCLUDE to portably include the SDL files
|
||||||
// from the right location.
|
// from the right location.
|
||||||
|
|||||||
Reference in New Issue
Block a user