diff options
author | David Carlier <devnexen@gmail.com> | 2021-05-21 20:36:21 +0100 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-05-27 12:35:51 +0200 |
commit | 8b5630050aa541c2e49632bf2dc69b70f4120f5d (patch) | |
tree | 7f3972bb2b69f72e56f5d475132258abdd258d07 /zutil_p.h | |
parent | c91806258805d243080a934ebd169333d4f8ba46 (diff) |
OpenBSD build fix proposal
Diffstat (limited to 'zutil_p.h')
-rw-r--r-- | zutil_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ #ifndef ZUTIL_P_H #define ZUTIL_P_H -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__OpenBSD__) # include <stdlib.h> #elif defined(__FreeBSD__) # include <stdlib.h> @@ -16,7 +16,7 @@ /* Function to allocate 16 or 64-byte aligned memory */ static inline void *zng_alloc(size_t size) { -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) void *ptr; return posix_memalign(&ptr, 64, size) ? NULL : ptr; #elif defined(_WIN32) |