libyang BUGFIX set feature macro for strdup() on OSX
Since OS X requires different value (600) of _XOPEN_SOURCE feature test macro for
strdup() than linux (500), better use _POSIX_C_SOURCE 200809L. It is available
since glibc 2.12 (released 2010) so it shouldn't be an issue.
diff --git a/src/validation.c b/src/validation.c
index 0877b85..f8bc3de 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -11,7 +11,7 @@
*
* https://opensource.org/licenses/BSD-3-Clause
*/
-#define _XOPEN_SOURCE 500 /* strdup */
+#define _POSIX_C_SOURCE 200809L /* strdup */
#include "validation.h"