Release
[nbd.git] / lfs.h
blobff39691c9ca0b57e084aa1e6d5857602f12b2dca
1 #ifndef LFS_H
2 #define LFS_H
4 #include "config.h"
5 #if NBD_LFS
6 # define _FILE_OFFSET_BITS 64
7 # ifndef _LARGEFILE_SOURCE
8 # define _LARGEFILE_SOURCE
9 # endif
10 # define PARAM_OFFT PARAM_INT64
11 #else
12 # define PARAM_OFFT PARAM_INT
13 #endif /* NBD_LFS */
14 #ifdef HAVE_SYNC_FILE_RANGE
15 # define USE_SYNC_FILE_RANGE
16 # define _GNU_SOURCE
17 #endif /* HAVE_SYNC_FILE_RANGE */
19 #endif /* LFS_H */