From: IIDA Yosiaki Date: Wed, 30 Mar 2011 11:55:07 +0000 (-0600) Subject: Bug 3181: /dev/poll fails to build on Solaris with GCC 4.5.0 X-Git-Tag: SQUID_3_1_12~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44788bbbf243c7b2aeee4dc1ea37c1f2b28a6dad;p=thirdparty%2Fsquid.git Bug 3181: /dev/poll fails to build on Solaris with GCC 4.5.0 --- diff --git a/src/comm_devpoll.cc b/src/comm_devpoll.cc index 25cb3630b6..86e61bb27a 100644 --- a/src/comm_devpoll.cc +++ b/src/comm_devpoll.cc @@ -88,7 +88,7 @@ struct _devpoll_state { * pfds structure elements have been set) until it is full before it * is written out the API. */ -struct { +static struct { struct pollfd *pfds; /**< ptr to array of struct pollfd config elements */ int cur; /**< index of last written element of array, or -1 if none */ int size; /**< maximum number of elements in array */