aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/anyauthput.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-05 11:43:40 +0100
committerYang Tse <yangsita@gmail.com>2012-12-05 11:43:40 +0100
commit7332a7cafba43c96893a8df9b08e5d15df4f3288 (patch)
tree4fedc48ceedc9917d67a4aa93c819c72ca5a6b7c /docs/examples/anyauthput.c
parent23f8dca6fb91329fe78bb5a00527286692d2a357 (diff)
examples: fix compilation issues - commit 23f8dca6fb follow-up
Diffstat (limited to 'docs/examples/anyauthput.c')
-rw-r--r--docs/examples/anyauthput.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c
index 54e5f1aff..6eea98f1d 100644
--- a/docs/examples/anyauthput.c
+++ b/docs/examples/anyauthput.c
@@ -27,9 +27,7 @@
# ifdef __VMS
typedef int intptr_t;
# endif
-# if defined(_AIX) || defined(__sgi) || defined(__osf)
- typedef long intptr_t;
-# else
+# if !defined(_AIX) && !defined(__sgi) && !defined(__DECC)
# include <stdint.h>
# endif
# include <unistd.h>
@@ -55,6 +53,12 @@
#define TRUE 1
#endif
+#if defined(_AIX) || defined(__sgi) || defined(__DECC)
+#ifndef intptr_t
+#define intptr_t long
+#endif
+#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