5
4

1 回答 1

7

You need to define _XOPEN_SOURCE 500 before your includes:

#define _XOPEN_SOURCE 500

#include<unistd.h>

Otherwise, the unistd.h header won't see the macro definition.

于 2012-09-13T17:50:28.927 回答