Skip to content

Commit 1a429b7

Browse files
cmburnstaticfloat
authored andcommitted
Fix build for OpenBSD
1 parent d320422 commit 1a429b7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libblastrampoline.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ extern "C" {
77
// This shamelessly stolen from https://github.com/JuliaLang/julia/blob/master/src/support/platform.h
88
#if defined(__FreeBSD__)
99
#define _OS_FREEBSD_
10+
#elif defined(__OpenBSD__)
11+
#define _OS_OPENBSD_
1012
#elif defined(__linux__)
1113
#define _OS_LINUX_
1214
#elif defined(_WIN32) || defined(_WIN64)

src/libblastrampoline_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <dlfcn.h>
2525
#endif
2626

27-
#ifdef _OS_FREEBSD_
27+
#if defined(_OS_FREEBSD_) || defined(_OS_OPENBSD_)
2828
#include <stddef.h>
2929
#include <sys/sysctl.h>
3030
#include <dlfcn.h>

0 commit comments

Comments
 (0)