Skip to content

Commit

Permalink
thirdparty: fix compilation of programs using miniz.h on OpenBSD (#22254
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lcheylus authored Sep 18, 2024
1 parent 5f6015f commit 65504ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thirdparty/zip/miniz.h
Original file line number Diff line number Diff line change
Expand Up @@ -5026,7 +5026,7 @@ static int mz_mkdir(const char *pDirname) {
}

#ifndef MINIZ_NO_TIME
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#if ( defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#include <utime.h>
#else
#include <sys/utime.h>
Expand Down Expand Up @@ -5073,7 +5073,7 @@ static int mz_mkdir(const char *pDirname) {

#elif defined(__TINYC__)
#ifndef MINIZ_NO_TIME
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#if ( defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#include <utime.h>
#else
#include <sys/utime.h>
Expand Down Expand Up @@ -5113,7 +5113,7 @@ static int mz_mkdir(const char *pDirname) {
#define MZ_DELETE_FILE remove
#define MZ_MKDIR(d) mkdir(d, 0755)

#elif defined(__APPLE__) || defined(__FreeBSD__)
#elif defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
#ifndef MINIZ_NO_TIME
#include <utime.h>
#endif
Expand Down

0 comments on commit 65504ae

Please sign in to comment.