Commit 79e10524 authored by gabime's avatar gabime

Fix #1335

parent 2d4e531a
...@@ -230,7 +230,12 @@ SPDLOG_INLINE size_t filesize(FILE *f) ...@@ -230,7 +230,12 @@ SPDLOG_INLINE size_t filesize(FILE *f)
#endif #endif
#else // unix #else // unix
// OpenBSD doesn't compile with :: before the fileno(..)
#if defined(__OpenBSD__)
int fd = fileno(f);
#else
int fd = ::fileno(f); int fd = ::fileno(f);
#endif
// 64 bits(but not in osx or cygwin, where fstat64 is deprecated) // 64 bits(but not in osx or cygwin, where fstat64 is deprecated)
#if (defined(__linux__) || defined(__sun) || defined(_AIX)) && (defined(__LP64__) || defined(_LP64)) #if (defined(__linux__) || defined(__sun) || defined(_AIX)) && (defined(__LP64__) || defined(_LP64))
struct stat64 st; struct stat64 st;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment