--- CMakeLists.txt.orig	2017-08-14 17:41:03.000000000 -0700
+++ CMakeLists.txt	2017-08-14 17:43:39.000000000 -0700
@@ -18,6 +18,8 @@
     set(ENABLE_TOOLS ON)
 endif ()
 
+add_definitions(-D__STDC_FORMAT_MACROS)
+
 # -----------------------------------------------------------------------------
 # Determine which port will be built
 # -----------------------------------------------------------------------------