mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Remove some BEOS 1st party code leftovers.
This commit is contained in:
parent
a35c549212
commit
83ab16d267
3 changed files with 4 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "ipc/IPCMessageUtils.h"
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
#include <unistd.h>
|
||||
#elif defined(XP_WIN)
|
||||
#include <windows.h>
|
||||
|
|
@ -97,14 +97,14 @@ nsFileStreamBase::SetEOF()
|
|||
if (mFD == nullptr)
|
||||
return NS_BASE_STREAM_CLOSED;
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
// Some system calls require an EOF offset.
|
||||
int64_t offset;
|
||||
rv = Tell(&offset);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#endif
|
||||
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#if defined(XP_UNIX)
|
||||
if (ftruncate(PR_FileDesc2NativeHandle(mFD), offset) != 0) {
|
||||
NS_ERROR("ftruncate failed");
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue