We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9254960 commit b8c1c74Copy full SHA for b8c1c74
1 file changed
compat/compat.c
@@ -3,15 +3,17 @@
3
* @author Michal Vasko <mvasko@cesnet.cz>
4
* @brief compatibility functions
5
*
6
- * Copyright (c) 2021 - 2023 CESNET, z.s.p.o.
+ * Copyright (c) 2021 - 2025 CESNET, z.s.p.o.
7
8
* This source code is licensed under BSD 3-Clause License (the "License").
9
* You may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
11
12
* https://opensource.org/licenses/BSD-3-Clause
13
*/
14
-#define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
+#if !defined (__FreeBSD__) /* hides getpeereid */
15
+# define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
16
+#endif
17
#define _ISOC99_SOURCE /* vsnprintf */
18
#define _QNX_SOURCE /* getpeereid */
19
#define _GNU_SOURCE /* SO_PEERCRED */
0 commit comments