From 429b3b3dfe0f7ef155cfc5768c10285e92e1dfe6 Mon Sep 17 00:00:00 2001 From: johns <> Date: Sun, 13 Aug 2000 12:34:57 +0000 Subject: [PATCH] BeOS changes by Kenneth Sanislo. --- src/include/siod.h | 2 ++ src/network/network.cpp | 4 ++++ src/video/sdl.cpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/include/siod.h b/src/include/siod.h index a268ddfdb..21601a469 100644 --- a/src/include/siod.h +++ b/src/include/siod.h @@ -130,8 +130,10 @@ typedef LISP (*SUBR_FUNC)(void); #define TKBUFFERN 5120 #ifndef WIN32 +#ifndef __stdcall #define __stdcall #endif +#endif struct gen_readio diff --git a/src/network/network.cpp b/src/network/network.cpp index 8ceb76009..cd0092fdf 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -56,6 +56,10 @@ #endif // !WIN32 #endif // !USE_SDL_NET +#ifndef INADDR_NONE +#define INADDR_NONE -1 +#endif + #define BASE_OF(type, elem, p) ((type *)((char *)(p) - offsetof(type, elem))) //---------------------------------------------------------------------------- diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index b7b7a3031..6bc5e2e49 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -28,6 +28,10 @@ #include <sys/time.h> #include <SDL/SDL.h> +#ifdef USE_BEOS +#include <sys/socket.h> +#endif + #ifdef USE_WIN32 #include <winsock.h> #undef DrawText