diff --git a/examples/HtmlParser.h b/examples/HtmlParser.h
index eeb1a078..1366d89e 100644
--- a/examples/HtmlParser.h
+++ b/examples/HtmlParser.h
@@ -25,7 +25,9 @@
#ifndef HTML_PARSER_H
#define HTML_PARSER_H
-#include
+#ifdef HAVE_CONFIG_H
+# include
+#endif // HAVE_CONFIG_H
#include
#include
diff --git a/examples/spdycat.cc b/examples/spdycat.cc
index f54be6d9..7a21ac93 100644
--- a/examples/spdycat.cc
+++ b/examples/spdycat.cc
@@ -22,7 +22,9 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include
+#ifdef HAVE_CONFIG_H
+# include
+#endif // HAVE_CONFIG_H
#include
#include