diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc
index f993fe84135..ce2ddf97d08 100644
--- a/storage/tokudb/ha_tokudb.cc
+++ b/storage/tokudb/ha_tokudb.cc
@@ -92,6 +92,7 @@ PATENT RIGHTS GRANT:
 #pragma implementation          // gcc: Class implementation
 #endif
 
+#include <my_config.h>
 extern "C" {
 #include "stdint.h"
 #define __STDC_FORMAT_MACROS