summaryrefslogtreecommitdiff
path: root/docs/examples/synctime.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-05 23:10:37 +0000
committerYang Tse <yangsita@gmail.com>2006-07-05 23:10:37 +0000
commitbc2f0c7dcbd22ab52971df4a419933e70f263a3f (patch)
treef0691aecd2dab76f769aa04ad94c18a8fa4ed6aa /docs/examples/synctime.c
parentc6ae0ebcbf3c7b47ab444195613c6e14843fa248 (diff)
downloadcurl-bc2f0c7dcbd22ab52971df4a419933e70f263a3f.tar.gz
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
Diffstat (limited to 'docs/examples/synctime.c')
-rw-r--r--docs/examples/synctime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/examples/synctime.c b/docs/examples/synctime.c
index 9f3bba0e9..fc629ee33 100644
--- a/docs/examples/synctime.c
+++ b/docs/examples/synctime.c
@@ -59,7 +59,9 @@
#include <stdio.h>
#include <time.h>
+#ifndef __CYGWIN__
#include <windows.h>
+#endif
#include <curl/curl.h>