redict/fmacros.h
Drew DeVault cf8c5a2b83 Squashed 'deps/hiredict/' content from commit 7bce77ae6
git-subtree-dir: deps/hiredict
git-subtree-split: 7bce77ae6a6d50cdb09d4aa622b84875f8ae2d3f
2024-03-23 15:19:45 +01:00

26 lines
561 B
C

/*
* Copyright (c) 2009-2011, Salvatore Sanfilippo <antirez at gmail dot com>
*
* SPDX-FileCopyrightText: 2024 Hiredict Contributors
* SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: LGPL-3.0-or-later
*
*/
#ifndef __HIREDICT_FMACRO_H
#define __HIREDICT_FMACRO_H
#ifndef _AIX
#define _XOPEN_SOURCE 600
#define _POSIX_C_SOURCE 200112L
#endif
#if defined(__APPLE__) && defined(__MACH__)
/* Enable TCP_KEEPALIVE */
#define _DARWIN_C_SOURCE
#endif
#endif