Fix use of _LARGEFILE64_SOURCE

This commit is contained in:
Elad Lahav authored and Ryan C. Gordon committed 2023-03-27 15:33:08 -07:00
1 parent 4374645738
commit 49a8b16ffd
1 file changed
+7
+7
View File
@@ -28,7 +28,14 @@
/* Need this so Linux systems define fseek64o, ftell64o and off64_t */ /* Need this so Linux systems define fseek64o, ftell64o and off64_t */
#ifndef _LARGEFILE64_SOURCE #ifndef _LARGEFILE64_SOURCE
#ifndef __QNX__
#define _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE
#else
/* QNX expects either _LARGEFILE64_SOURCE to be defined as a value or not at
all.
As the comment above says _LARGEFILE64_SOURCE is for Linux, should it be
defined only if __LINUX__ is defined? */
#endif
#endif #endif
/* This is for a variable-length array at the end of a struct: /* This is for a variable-length array at the end of a struct: