mirror of
https://github.com/facebook/zstd.git
synced 2025-08-05 19:15:58 +03:00
blind fix for QNX
following notification from @rainbowball. fix #4186. Note: there is currently no QNX compilation test in CI so this is a "blind" fix, and this target can be silently broken again in the future.
This commit is contained in:
@@ -11,23 +11,18 @@
|
|||||||
#ifndef UTIL_H_MODULE
|
#ifndef UTIL_H_MODULE
|
||||||
#define UTIL_H_MODULE
|
#define UTIL_H_MODULE
|
||||||
|
|
||||||
#if defined (__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*-****************************************
|
/*-****************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
******************************************/
|
******************************************/
|
||||||
#include "platform.h" /* PLATFORM_POSIX_VERSION, ZSTD_NANOSLEEP_SUPPORT, ZSTD_SETPRIORITY_SUPPORT */
|
#include "platform.h" /* PLATFORM_POSIX_VERSION, ZSTD_NANOSLEEP_SUPPORT, ZSTD_SETPRIORITY_SUPPORT */
|
||||||
#include <stddef.h> /* size_t, ptrdiff_t */
|
#include <stddef.h> /* size_t, ptrdiff_t */
|
||||||
|
#include <stdio.h> /* FILE */
|
||||||
#include <sys/types.h> /* stat, utime */
|
#include <sys/types.h> /* stat, utime */
|
||||||
#include <sys/stat.h> /* stat, chmod */
|
#include <sys/stat.h> /* stat, chmod */
|
||||||
#include "../lib/common/mem.h" /* U64 */
|
#include "../lib/common/mem.h" /* U64 */
|
||||||
|
|
||||||
|
|
||||||
/*-************************************************************
|
/*-************************************************************
|
||||||
* Avoid fseek()'s 2GiB barrier with MSVC, macOS, *BSD, MinGW
|
* Fix fseek()'s 2GiB barrier with MSVC, macOS, *BSD, MinGW
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||||
# define UTIL_fseek _fseeki64
|
# define UTIL_fseek _fseeki64
|
||||||
@@ -39,7 +34,6 @@ extern "C" {
|
|||||||
# define UTIL_fseek fseek
|
# define UTIL_fseek fseek
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*-*************************************************
|
/*-*************************************************
|
||||||
* Sleep & priority functions: Windows - Posix - others
|
* Sleep & priority functions: Windows - Posix - others
|
||||||
***************************************************/
|
***************************************************/
|
||||||
@@ -88,6 +82,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined (__cplusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-****************************************
|
/*-****************************************
|
||||||
* Console log
|
* Console log
|
||||||
******************************************/
|
******************************************/
|
||||||
|
Reference in New Issue
Block a user