aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/anyauthput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c
index c5486333e..54cea0017 100644
--- a/docs/examples/anyauthput.c
+++ b/docs/examples/anyauthput.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <curl/curl.h>
@@ -18,6 +19,10 @@
#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