mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
26 lines
561 B
C
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
|