From: IIDA Yosiaki Date: Wed, 23 Mar 2011 01:54:22 +0000 (+1200) Subject: Bug 3181: /dev/poll fails to build on Solaris with GCC 4.5.0 X-Git-Tag: take06~27^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14302ffad0243fd990d6a922fb2662df932fae30;p=thirdparty%2Fsquid.git Bug 3181: /dev/poll fails to build on Solaris with GCC 4.5.0 --- diff --git a/src/comm/ModDevPoll.cc b/src/comm/ModDevPoll.cc index 7cf65131a0..614ac85416 100644 --- a/src/comm/ModDevPoll.cc +++ b/src/comm/ModDevPoll.cc @@ -89,7 +89,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 */