[newlib-cygwin] Include <sched.h> in <pthread.h>

Corinna Vinschen corinna@sourceware.org
Fri Oct 30 19:28:00 GMT 2015


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

commit ce8159d5ce5a4350b28a46fdca3164508d5a6fdd
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Fri Oct 30 15:23:20 2015 +0100

    Include <sched.h> in <pthread.h>
    
    This is mandated by POSIX.
    
    2015-10-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
    
    	libc/include/pthread.h: Include <sched.h> instead of
    	<sys/sched.h>.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/include/pthread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index db1f9c1..907970f 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -31,7 +31,7 @@ extern "C" {
 
 #include <sys/types.h>
 #include <time.h>
-#include <sys/sched.h>
+#include <sched.h>
 #include <sys/cdefs.h>
 
 struct _pthread_cleanup_context {



More information about the Newlib-cvs mailing list