make it compile fine
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jul 2007 20:55:17 +0000 (20:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jul 2007 20:55:17 +0000 (20:55 +0000)
docs/examples/anyauthput.c

index c548633..54cea00 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #include <curl/curl.h>
 
 #error "upgrade your libcurl to no less than 7.12.3"
 #endif
 
+#ifndef TRUE
+#define TRUE 1
+#endif
+
 /*
  * This example shows a HTTP PUT operation with authentiction using "any"
  * type. It PUTs a file given as a command line argument to the URL also given