X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fpoll.cc;h=5914aa47655236070f2e741b94d7da98e7e2121d;hb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;hp=81062caee33b658e1756f72f82c804b51be1ba48;hpb=dfdcce95b625e98144c1681f05b337648b92f20f;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/poll.cc b/src/libmemcached/poll.cc index 81062cae..5914aa47 100644 --- a/src/libmemcached/poll.cc +++ b/src/libmemcached/poll.cc @@ -22,7 +22,7 @@ # endif # include # if HAVE_STRINGS_H -# include +# include # endif int poll(struct pollfd fds[], nfds_t nfds, int tmo) { @@ -49,7 +49,7 @@ int poll(struct pollfd fds[], nfds_t nfds, int tmo) { } } - struct timeval timeout = {.tv_sec = tmo / 1000, .tv_usec = (tmo % 1000) * 1000}; + struct timeval timeout = {tmo / 1000, (tmo % 1000) * 1000}; struct timeval *tp = &timeout; if (tmo == -1) { tp = NULL;