Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashad Kanavath <rashad.kanavath@c-s.fr>2018-09-04 12:41:06 +0300
committerRashad Kanavath <rashad.kanavath@c-s.fr>2018-09-04 12:41:06 +0300
commit9ca4e3d8bcc39c7b174c579eeb9b36d88d387c96 (patch)
tree182b43c662dff6518dc5e5450a1c2a83dc28336a
parentf1a60eb6b16f64f042f975e0c9ebba815a417f56 (diff)
fix build on openbsd
-rw-r--r--include/spdlog/details/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h
index 28eb53c3..42f61581 100644
--- a/include/spdlog/details/os.h
+++ b/include/spdlog/details/os.h
@@ -237,7 +237,7 @@ inline size_t filesize(FILE *f)
#else // unix
int fd = fileno(f);
// 64 bits(but not in osx or cygwin, where fstat64 is deprecated)
-#if !defined(__FreeBSD__) && !defined(__APPLE__) && (defined(__x86_64__) || defined(__ppc64__)) && !defined(__CYGWIN__)
+#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__) && (defined(__x86_64__) || defined(__ppc64__)) && !defined(__CYGWIN__)
struct stat64 st;
if (fstat64(fd, &st) == 0)
{