diff --git a/features.export.inc b/features.export.inc
index 68c2da2..6f82f8c 100644
--- a/features.export.inc
+++ b/features.export.inc
@@ -277,10 +277,16 @@ function features_export_render($export, $module_name, $reset = FALSE) {
     $code['module'] = file_get_contents($existing->filename);
 
     // If the current module file does not reference the features.inc include,
-    // set a warning message.
+    // and it ought to, add the include statement at the top of the file code.
     // @TODO this way of checking does not account for the possibility of inclusion instruction being commented out.
     if (isset($code['features']) && strpos($code['module'], "{$module_name}.features.inc") === FALSE) {
-      features_log(t('@module does not appear to include the @include file.', array('@module' => "{$module_name}.module", '@include' => "{$module_name}.features.inc")), 'warning');
+      // Find the position of the @file docblock, which should be the first
+      // multiline comment in the file. Add in the length of the string we
+      // search for to get the end position.
+      $file_docblock_end_position = strpos($code['module'], "*/\n\n") + 4;
+      
+      $include_code = "include_once('{$module_name}.features.inc');\n\n";
+      $code['module'] = substr_replace($code['module'], $include_code, $file_docblock_end_position, 0);
     }
 
     // Deprecated files. Display a message for any of these files letting the
