Skip to content

Commit b8c1c74

Browse files
committed
compat UPDATE getpeereid on freeBSD
1 parent 9254960 commit b8c1c74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compat/compat.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
* @author Michal Vasko <[email protected]>
44
* @brief compatibility functions
55
*
6-
* Copyright (c) 2021 - 2023 CESNET, z.s.p.o.
6+
* Copyright (c) 2021 - 2025 CESNET, z.s.p.o.
77
*
88
* This source code is licensed under BSD 3-Clause License (the "License").
99
* You may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
1212
* https://opensource.org/licenses/BSD-3-Clause
1313
*/
14-
#define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
14+
#if !defined (__FreeBSD__) /* hides getpeereid */
15+
# define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
16+
#endif
1517
#define _ISOC99_SOURCE /* vsnprintf */
1618
#define _QNX_SOURCE /* getpeereid */
1719
#define _GNU_SOURCE /* SO_PEERCRED */

0 commit comments

Comments
 (0)