updated for version 7.0053
diff --git a/src/feature.h b/src/feature.h
index 0383cdb..3173901 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -382,7 +382,7 @@
 /*
  * +profile		Profiling for functions and scripts.
  */
-#ifdef FEAT_HUGE
+#if defined(FEAT_HUGE) && defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)
 # define FEAT_PROFILE
 #endif