From 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 Mon Sep 17 00:00:00 2001 From: Jason Copenhaver Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: Fix compiler warnings on Cygwin and Mac OS X. * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X. --- protocols/oscar/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/oscar') diff --git a/protocols/oscar/conn.c b/protocols/oscar/conn.c index a178761e..16b6ac07 100644 --- a/protocols/oscar/conn.c +++ b/protocols/oscar/conn.c @@ -570,7 +570,7 @@ int aim_conn_completeconnect(aim_session_t *sess, aim_conn_t *conn) } if (FD_ISSET(conn->fd, &fds) || FD_ISSET(conn->fd, &wfds)) { - unsigned int len = sizeof(error); + socklen_t len = sizeof(error); if (getsockopt(conn->fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) error = errno; -- cgit v1.2.3