This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]