Mercurial > hgbook
view ja/examples/mq.tarball.qinit.out @ 331:110ebf968d3f
more mq.tex
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 30 Mar 2008 14:51:01 +0900 |
parents | b0db5adf11c1 |
children |
line wrap: on
line source
$ \textbf{cd netplug} $ \textbf{hg qinit} $ \textbf{hg qnew -m 'fix build problem with gcc 4' build-fix.patch} $ \textbf{perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c} $ \textbf{hg qrefresh} $ \textbf{hg tip -p} changeset: tag: qtip tag: build-fix.patch tag: tip tag: qbase user: Bryan O'Sullivan <bos@serpentine.com> summary: fix build problem with gcc 4 diff -r -r netlink.c @@ -275,7 +275,7 @@ netlink_open(void) exit(1); \} - int addr_len = sizeof(addr); + socklen_t addr_len = sizeof(addr); if (getsockname(fd, (struct sockaddr *) &addr, &addr_len) == -1) \{ do_log(LOG_ERR, "Could not get socket details: %m");