bos@144: $ \textbf{cd netplug} bos@144: $ \textbf{hg qinit} bos@144: $ \textbf{hg qnew -m 'fix build problem with gcc 4' build-fix.patch} bos@144: $ \textbf{perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c} bos@144: $ \textbf{hg qrefresh} bos@144: $ \textbf{hg tip -p} bos@144: changeset: bos@144: tag: qtip bos@144: tag: build-fix.patch bos@144: tag: tip bos@144: tag: qbase bos@144: user: Bryan O'Sullivan bos@144: bos@144: summary: fix build problem with gcc 4 bos@144: bos@144: diff -r -r netlink.c bos@144: bos@144: bos@144: @@ -275,7 +275,7 @@ netlink_open(void) bos@144: exit(1); bos@144: \} bos@144: bos@144: - int addr_len = sizeof(addr); bos@144: + socklen_t addr_len = sizeof(addr); bos@144: bos@144: if (getsockname(fd, (struct sockaddr *) &addr, &addr_len) == -1) \{ bos@144: do_log(LOG_ERR, "Could not get socket details: %m"); bos@144: