I use Digital Unix 4.0F (OSF/1) .I write a simple programe :
#define _POSIX_SOURCE
#include <pthread.h>
void main(void)
{ }
But , the compiler report many errors .
I do not know why the compiler compain that .
Thank you in advance
I use Digital Unix 4.0F (OSF/1) .I write a simple programe :
#define _POSIX_SOURCE
#include <pthread.h>
void main(void)
{ }
But , the compiler report many errors .
I do not know why the compiler compain that .
Thank you in advance
You need to use:
#define _POSIX_C_SOURCE 199506L
You can get more info by reading the well commented /usr/include/pthread.h. (Tested on 4.0G)