From 9d3442dff18420a7956b747ba3616e3fa5830684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 14 Jan 2010 21:50:50 +0000 Subject: [PATCH] Haiku defines B_BEOS_VERSION_5, so the code didn't work as intended. On Haiku, we want to define closesocket() as close(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35079 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/userlandfs/shared/Compatibility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/private/userlandfs/shared/Compatibility.h b/headers/private/userlandfs/shared/Compatibility.h index 62c09d8b85..8a686ff2ba 100644 --- a/headers/private/userlandfs/shared/Compatibility.h +++ b/headers/private/userlandfs/shared/Compatibility.h @@ -32,8 +32,8 @@ #include -#if B_BEOS_VERSION <= B_BEOS_VERSION_5 -//# define B_BAD_DATA -2147483632L +#ifdef HAIKU_TARGET_PLATFORM_BEOS +# define B_BAD_DATA -2147483632L #else # ifndef closesocket # define closesocket(fd) close(fd)