OSDN Git Service

Fix PTHREAD_STACK_MIN definition in pthread.h
authorIrina Tirdea <irina.tirdea@intel.com>
Tue, 26 Jun 2012 15:53:01 +0000 (18:53 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 8 Jan 2014 03:31:12 +0000 (11:31 +0800)
The definition of PTHREAD_STACK_MIN in pthread.h
depends on PAGE_SIZE. PAGE_SIZE is not defined
in pthread.h, so whoever wants to use PTHREAD_STACK_MIN
needs to include first asm/page.h.

Including pthread.h should be enough to have a valid
definition of PTHREAD_STACK_MIN. Including asm/page.h
in pthread.h so that PAGE_SIZE is visibile and the
definition for PTHREAD_STACK_MIN valid.

For: AIA-452
Change-Id: I2a0de73aa6482894b03ed792cb69485ec61a217e
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
libc/include/pthread.h

index dbdee70..3b6068f 100644 (file)
@@ -33,6 +33,7 @@
 #include <sched.h>
 #include <limits.h>
 #include <sys/types.h>
+#include <asm/page.h>
 
 /*
  * Types