aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/anyauthput.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-12 20:55:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-12 20:55:17 +0000
commit4a728747e6f8845e500910e397dfc99aaf4a7984 (patch)
tree1a37ddef3c509c1b5ba96f50ebbfb125fc3e5958 /docs/examples/anyauthput.c
parentf5a6355172fce41ce66acf84ca645d6df2c833a8 (diff)
make it compile fine
Diffstat (limited to 'docs/examples/anyauthput.c')
-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