diff options
-rw-r--r-- | tools/source/fsys/unx.cxx | 5 | ||||
-rw-r--r-- | tools/source/stream/strmunx.cxx | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tools/source/fsys/unx.cxx b/tools/source/fsys/unx.cxx index 7de396d9c386..0ed7dd4d8f8d 100644 --- a/tools/source/fsys/unx.cxx +++ b/tools/source/fsys/unx.cxx @@ -45,7 +45,7 @@ extern "C" int mntctl( int cmd, size_t size, char* buf ); #elif defined(NETBSD) #include <sys/mount.h> -#elif defined(FREEBSD) || defined(MACOSX) +#elif defined(FREEBSD) || defined(MACOSX) || defined(OPENBSD) #elif defined DECUNIX struct mnttab { @@ -95,7 +95,8 @@ struct mymnttab }; -#if defined(NETBSD) || defined(FREEBSD) || defined(MACOSX) +#if defined(NETBSD) || defined(FREEBSD) || defined(MACOSX) || \ + defined(OPENBSD) BOOL GetMountEntry(dev_t /* dev */, struct mymnttab * /* mytab */ ) { DBG_WARNING( "Sorry, not implemented: GetMountEntry" ); diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 5734cad12c35..5e03bcf2b237 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -210,7 +210,8 @@ static sal_uInt32 GetSvError( int nErrno ) { 0, SVSTREAM_OK }, { EACCES, SVSTREAM_ACCESS_DENIED }, { EBADF, SVSTREAM_INVALID_HANDLE }, -#if defined( RS6000 ) || defined( ALPHA ) || defined( HP9000 ) || defined( NETBSD ) || defined(FREEBSD) || defined(MACOSX) || defined(__FreeBSD_kernel__) || defined ( AIX ) +#if defined( RS6000 ) || defined( ALPHA ) || defined( HP9000 ) || defined( NETBSD ) || defined(FREEBSD) || defined(MACOSX) || \ + defined(OPENBSD) || defined(__FreeBSD_kernel__) || defined ( AIX ) { EDEADLK, SVSTREAM_LOCKING_VIOLATION }, #else { EDEADLOCK, SVSTREAM_LOCKING_VIOLATION }, @@ -224,7 +225,8 @@ static sal_uInt32 GetSvError( int nErrno ) { EAGAIN, SVSTREAM_LOCKING_VIOLATION }, { EISDIR, SVSTREAM_PATH_NOT_FOUND }, { ELOOP, SVSTREAM_PATH_NOT_FOUND }, -#if ! defined( RS6000 ) && ! defined( ALPHA ) && ! defined( NETBSD ) && ! defined (FREEBSD) && ! defined (MACOSX) && ! defined(__FreeBSD_kernel__) +#if ! defined( RS6000 ) && ! defined( ALPHA ) && ! defined( NETBSD ) && ! defined (FREEBSD) && ! defined (MACOSX) && \ + !defined(OPENBSD) && ! defined(__FreeBSD_kernel__) { EMULTIHOP, SVSTREAM_PATH_NOT_FOUND }, { ENOLINK, SVSTREAM_PATH_NOT_FOUND }, #endif |