NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD and _POSIX_C_SOURCE



If I define _POSIX_C_SOURCE=200809L then certain types are no longer
visible: 

rp3$ cat /tmp/test.c
#include <sched.h>

int main(void)
{
        cpuset_t cset;
}

rp3$ gcc -D_POSIX_C_SOURCE=200809L -Wall -pedantic /tmp/test.c
/tmp/test.c: In function 'main':
/tmp/test.c:5:2: error: unknown type name 'cpuset_t'; did you mean
'sigset_t'? cpuset_t *cset;
  ^~~~~~~~
  sigset_t
/tmp/test.c:5:12: warning: unused variable 'cset' [-Wunused-variable]
  cpuset_t *cset;
            ^~~~

So what are the recommended macros to get all POSIX APIs + all NetBSD
specific extensions?



Home | Main Index | Thread Index | Old Index