This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

commit 11286358a073511199445d724e145d062e4a605a
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 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]