Skip to content

Commit

Permalink
handles os type __OpenBSD__
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Feb 15, 2024
1 parent f3aafba commit 7a4054f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noson/src/private/os/unix/os-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef LONG HRESULT;
#define E_OUTOFMEMORY 0x8007000EL
#define E_FAIL 0x8004005EL

#if defined(__APPLE__) || defined(__FreeBSD__)
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/cdefs.h>
#include <sys/syslimits.h>
#define MAX_PATH PATH_MAX
Expand All @@ -60,7 +60,7 @@ typedef fpos_t fpos64_t;
#define stat64 stat
#define statfs64 statfs
#define fstat64 fstat
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include <stdio.h> /* for fpos_t */
typedef int64_t off64_t;
typedef off_t __off_t;
Expand Down

0 comments on commit 7a4054f

Please sign in to comment.