Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
BaConfigPosix.h
1/* Copyright (C) Real Time Logic LLC, 2026.
2 * POSIX feature-test settings must precede every system header.
3 * Used by the POSIX target and separately compiled POSIX DiskIo sources.
4 */
5#ifndef _BaConfigPosix_h
6#define _BaConfigPosix_h
7#include <BaConfigDefs.h>
8
9#ifndef BA_INTERNAL_CONFIG_OPTS_LOADED
10#define BA_INTERNAL_CONFIG_OPTS_LOADED 1
11#include <BaConfigOpts.h>
12#endif
13
14#if defined(BA_FILE_OFFSET_BITS) && BA_FILE_OFFSET_BITS == 64
15#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
16#error BA_FILE_OFFSET_BITS=64 requires _FILE_OFFSET_BITS=64
17#endif
18#ifndef _FILE_OFFSET_BITS
19#define _FILE_OFFSET_BITS 64
20#endif
21/* fseeko uses off_t; fseek still takes a 32-bit long on ILP32 systems. */
22#ifndef _LARGEFILE_SOURCE
23#define _LARGEFILE_SOURCE 1
24#endif
25#ifndef _LARGEFILE64_SOURCE
26#define _LARGEFILE64_SOURCE 1
27#endif
28#endif
29#endif