--- rpmio/rpmuuid.c	2011-03-26 09:03:53.000000000 -0400
+++ rpmio/rpmuuid.c	2017-09-30 18:25:59.000000000 -0400
@@ -2,6 +2,8 @@
  * \file rpmio/rpmuuid.c
  */
 
+#define _XOPEN_SOURCE 
+
 #if defined(__APPLE__)
 /* workaround for "uuid_t" type conflict, between <unistd.h> and "uuid.h" */
 #define _UUID_T
