diff options
Diffstat (limited to 'docs/examples/anyauthput.c')
-rw-r--r-- | docs/examples/anyauthput.c | 10 |
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 |