Define _POSIX_C_SOURCE only if it is not defined.

It considers cases that _POSIX_C_SOURCE is defined for all source files
by compile options in Makefile of a large project.