1 // compatibility.h 2 // 3 // Copyright (c) 2003, Ingo Weinhold (bonefish@cs.tu-berlin.de) 4 // 5 // This program is free software; you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation; either version 2 of the License, or 8 // (at your option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 // 19 // You can alternatively use *this file* under the terms of the the MIT 20 // license included in this package. 21 22 #ifndef REISERFS_COMPATIBILITY_H 23 #define REISERFS_COMPATIBILITY_H 24 25 #include <BeBuild.h> 26 27 #if B_BEOS_VERSION <= B_BEOS_VERSION_5 28 //# define B_BAD_DATA -2147483632L 29 #else 30 # ifndef closesocket 31 # define closesocket(fd) close(fd) 32 # endif 33 # define _IMPEXP_KERNEL 34 #endif 35 36 // a Haiku definition 37 #ifndef B_BUFFER_OVERFLOW 38 # define B_BUFFER_OVERFLOW EOVERFLOW 39 #endif 40 41 // make Zeta R5 source compatible without needing to link against libzeta.so 42 #ifdef find_directory 43 # undef find_directory 44 #endif 45 46 #endif // REISERFS_COMPATIBILITY_H 47