2019-08-31 01:27:35 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2004, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
2007-02-24 03:30:19 +03:00
|
|
|
#ifndef USERLAND_FS_COMPATIBILITY_H
|
|
|
|
#define USERLAND_FS_COMPATIBILITY_H
|
|
|
|
|
|
|
|
#include <BeBuild.h>
|
2009-03-22 04:33:47 +03:00
|
|
|
#include <Errors.h>
|
|
|
|
|
2007-02-24 03:30:19 +03:00
|
|
|
|
2010-01-15 00:50:50 +03:00
|
|
|
#ifdef HAIKU_TARGET_PLATFORM_BEOS
|
|
|
|
# define B_BAD_DATA -2147483632L
|
2007-02-24 03:30:19 +03:00
|
|
|
#else
|
|
|
|
# ifndef closesocket
|
|
|
|
# define closesocket(fd) close(fd)
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// a Haiku definition
|
|
|
|
#ifndef B_BUFFER_OVERFLOW
|
|
|
|
# define B_BUFFER_OVERFLOW EOVERFLOW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// make Zeta R5 source compatible without needing to link against libzeta.so
|
|
|
|
#ifdef find_directory
|
|
|
|
# undef find_directory
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // USERLAND_FS_COMPATIBILITY_H
|