diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-14 15:47:58 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-14 15:47:58 +0200 |
commit | 095ea556855b38138e39e713f482eb440f7da9b2 (patch) | |
tree | 62de3cd7cb8a6f75e568863bb73ca2deb80d87a9 /netwerk | |
parent | 7d1126fad325e889559b1f9113cbbb17d49842fa (diff) | |
download | UXP-095ea556855b38138e39e713f482eb440f7da9b2.tar UXP-095ea556855b38138e39e713f482eb440f7da9b2.tar.gz UXP-095ea556855b38138e39e713f482eb440f7da9b2.tar.lz UXP-095ea556855b38138e39e713f482eb440f7da9b2.tar.xz UXP-095ea556855b38138e39e713f482eb440f7da9b2.zip |
Remove some BEOS 1st party code leftovers.
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/base/nsFileStreams.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/base/nsFileStreams.cpp b/netwerk/base/nsFileStreams.cpp index 6508b33b9..5a82dea1b 100644 --- a/netwerk/base/nsFileStreams.cpp +++ b/netwerk/base/nsFileStreams.cpp @@ -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; |