public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] nftw: fix thread cancellation support
Date: Fri,  3 Sep 2021 10:26:34 +0000 (GMT)	[thread overview]
Message-ID: <20210903102634.E4400385840F@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6a35ae33f5c76f0cda6466fb4b426ff37ed534a1

commit 6a35ae33f5c76f0cda6466fb4b426ff37ed534a1
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Sep 3 12:25:44 2021 +0200

    nftw: fix thread cancellation support
    
    _STDIO_WITH_THREAD_CANCELLATION_SUPPORT was never defined.
    Include ../stdio/local.h to get the right definition per target.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/posix/nftw.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/newlib/libc/posix/nftw.c b/newlib/libc/posix/nftw.c
index f4f55f341..c45cc8f17 100644
--- a/newlib/libc/posix/nftw.c
+++ b/newlib/libc/posix/nftw.c
@@ -29,6 +29,8 @@
 #include <string.h>
 #include <limits.h>
 #include <pthread.h>
+/* Pull in _STDIO_WITH_THREAD_CANCELLATION_SUPPORT */
+#include "../stdio/local.h"
 
 struct history
 {
@@ -141,7 +143,7 @@ int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, str
 		return -1;
 	}
 	memcpy(pathbuf, path, l+1);
-	
+
 #ifdef _STDIO_WITH_THREAD_CANCELLATION_SUPPORT
 	pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
 #endif


                 reply	other threads:[~2021-09-03 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210903102634.E4400385840F@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).