This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] mutator.cxx:481:42: error: expected primary-expression before '.' token
- From: groleo at gmail dot com
- To: systemtap at sourceware dot org
- Cc: Adrian Negreanu <groleo at gmail dot com>
- Date: Tue, 26 Mar 2013 12:07:09 +0200
- Subject: [PATCH] mutator.cxx:481:42: error: expected primary-expression before '.' token
From: Adrian Negreanu <groleo@gmail.com>
Signed-off-by: Adrian Negreanu <groleo@gmail.com>
---
stapdyn/mutator.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/stapdyn/mutator.cxx b/stapdyn/mutator.cxx
index 9d95bfa..f9ba727 100644
--- a/stapdyn/mutator.cxx
+++ b/stapdyn/mutator.cxx
@@ -477,8 +477,10 @@ mutator::run ()
// letting signals break us out of the loop.
while (update_mutatees())
{
- pollfd pfd = { .fd=patch.getNotificationFD(),
- .events=POLLIN, .revents=0 };
+ pollfd pfd ;
+ pfd.fd=patch.getNotificationFD();
+ pfd.events=POLLIN;
+ pfd.revents=0;
int rc = ppoll (&pfd, 1, NULL, &masked.old);
if (rc < 0 && errno != EINTR)
--
1.7.9.5