From 7332a7cafba43c96893a8df9b08e5d15df4f3288 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 5 Dec 2012 11:43:40 +0100 Subject: examples: fix compilation issues - commit 23f8dca6fb follow-up --- docs/examples/anyauthput.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'docs/examples/anyauthput.c') 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 # endif # include @@ -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 -- cgit v1.2.3