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:
authorGabi Melman <gmelman1@gmail.com>2018-09-04 15:32:02 +0300
committerGitHub <noreply@github.com>2018-09-04 15:32:02 +0300
commit7088644d3f69f18b51671eb52dd49028fd858add (patch)
tree182b43c662dff6518dc5e5450a1c2a83dc28336a
parentf1a60eb6b16f64f042f975e0c9ebba815a417f56 (diff)
parent9ca4e3d8bcc39c7b174c579eeb9b36d88d387c96 (diff)
Merge pull request #821 from rkanavath/compile_fix
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)
{