xref: /haiku/headers/private/userlandfs/shared/Compatibility.h (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
1 /*
2  * Copyright 2004, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef USERLAND_FS_COMPATIBILITY_H
6 #define USERLAND_FS_COMPATIBILITY_H
7 
8 #include <BeBuild.h>
9 #include <Errors.h>
10 
11 
12 #ifdef HAIKU_TARGET_PLATFORM_BEOS
13 #	define B_BAD_DATA -2147483632L
14 #else
15 #	ifndef closesocket
16 #		define closesocket(fd)	close(fd)
17 #	endif
18 #endif
19 
20 // a Haiku definition
21 #ifndef B_BUFFER_OVERFLOW
22 #	define B_BUFFER_OVERFLOW	EOVERFLOW
23 #endif
24 
25 // make Zeta R5 source compatible without needing to link against libzeta.so
26 #ifdef find_directory
27 #	undef find_directory
28 #endif
29 
30 #endif	// USERLAND_FS_COMPATIBILITY_H
31