From f76e58c4d6b92a1666ef54e6348f2368e85a0b00 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Thu, 10 Jul 2003 18:49:52 +0000 Subject: [PATCH] making things 64-bit friendly svn path=/trunk/boinc/; revision=1659 --- client/http.C | 4 ++-- configure.ac | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/http.C b/client/http.C index 97471af45a..934f293591 100644 --- a/client/http.C +++ b/client/http.C @@ -264,7 +264,7 @@ int HTTP_OP::init_post(char* url, char* in, char* out) { http_post_request_header( request_header, hostname, port, proxy_buf, content_length ); - scope_messages.printf("HTTP_OP::init_post(): %x io_done %d\n", (unsigned int)this, io_done); + scope_messages.printf("HTTP_OP::init_post(): %p io_done %d\n", this, io_done); return 0; } @@ -426,7 +426,7 @@ bool HTTP_OP_SET::poll() { case HTTP_STATE_REPLY_HEADER: if (htp->io_ready) { action = true; - scope_messages.printf("HTTP_OP_SET::poll(): got reply header; %x io_done %d\n", (unsigned int)htp, htp->io_done); + scope_messages.printf("HTTP_OP_SET::poll(): got reply header; %p io_done %d\n", htp, htp->io_done); read_http_reply_header(htp->socket, htp->hrh); // TODO: handle all kinds of redirects here diff --git a/configure.ac b/configure.ac index 447ab0d44f..2a3c99ebe5 100644 --- a/configure.ac +++ b/configure.ac @@ -98,8 +98,9 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_HEADER_TIME +dnl TODO: use compiler to test these; there probably exists an autoconf macro already! case "$target" in -*-linux-*) +*-linux-* | *-sun-*) AC_DEFINE(GETSOCKOPT_SOCKLEN_T, 1, [getsockopt uses socklen_t]) ;; *sysv5OpenUNIX8*)