forked from facebook/wdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WdtConfig.h.in
34 lines (27 loc) · 974 Bytes
/
WdtConfig.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// Source is WdtConfig.h auto generated by CMake from .in file
#pragma once
#include <fcntl.h>
#define WDT_VERSION_MAJOR @WDT_VERSION_MAJOR@
#define WDT_VERSION_MINOR @WDT_VERSION_MINOR@
#define WDT_VERSION_BUILD @WDT_VERSION_PATCH@
#define WDT_VERSION_STR "@WDT_VERSION@"
// Tie minor and proto version for now
#define WDT_PROTOCOL_VERSION WDT_VERSION_MINOR
#cmakedefine HAS_POSIX_FALLOCATE 1
#cmakedefine HAS_SYNC_FILE_RANGE 1
#cmakedefine HAS_POSIX_MEMALIGN 1
#if defined(HAS_POSIX_MEMALIGN) && (defined(O_DIRECT) || defined(F_NOCACHE))
#define WDT_SUPPORTS_ODIRECT 1
#endif
#ifndef O_DIRECT
#define WDT_SIMULATED_ODIRECT 1
#define O_DIRECT 0x4000
#endif