This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 064f05091 porting/npl/linux: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is 
a GNU extension
064f05091 is described below

commit 064f05091941a5aafd7f5aa9834533c79e988705
Author: Deomid "rojer" Ryabkov <[email protected]>
AuthorDate: Wed Jul 19 21:42:24 2023 +0100

    porting/npl/linux: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is a GNU extension
    
    Need to provide `__USE_GNU` hint to pthread.h
---
 porting/npl/linux/src/os_atomic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/porting/npl/linux/src/os_atomic.c 
b/porting/npl/linux/src/os_atomic.c
index 3aaec08ad..51260149c 100644
--- a/porting/npl/linux/src/os_atomic.c
+++ b/porting/npl/linux/src/os_atomic.c
@@ -18,6 +18,7 @@
  */
 
 #include <stdint.h>
+#define __USE_GNU
 #include <pthread.h>
 
 #include "nimble/nimble_npl.h"

Reply via email to