Skip to content

Commit 3341d1d

Browse files
committed
compat BUGFIX pthread_rwlock feature macro
1 parent 19edc89 commit 3341d1d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

compat/compat.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef _COMPAT_H_
1616
#define _COMPAT_H_
1717

18+
#define _GNU_SOURCE /* pthread_rwlock_t */
19+
1820
#include <alloca.h>
1921
#include <limits.h>
2022
#include <pthread.h>

src/session_p.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @brief libnetconf2 session manipulation
66
*
77
* @copyright
8-
* Copyright (c) 2017 - 2021 CESNET, z.s.p.o.
8+
* Copyright (c) 2017 - 2023 CESNET, z.s.p.o.
99
*
1010
* This source code is licensed under BSD 3-Clause License (the "License").
1111
* You may not use this file except in compliance with the License.
@@ -17,6 +17,8 @@
1717
#ifndef NC_SESSION_PRIVATE_H_
1818
#define NC_SESSION_PRIVATE_H_
1919

20+
#define _GNU_SOURCE
21+
2022
#include <pthread.h>
2123
#include <stdint.h>
2224
#include <sys/stat.h>

0 commit comments

Comments
 (0)