From 9ca4e3d8bcc39c7b174c579eeb9b36d88d387c96 Mon Sep 17 00:00:00 2001 From: Rashad Kanavath Date: Tue, 4 Sep 2018 11:41:06 +0200 Subject: [PATCH] fix build on openbsd --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {