Fix build break in libnetd_resolv_test

Bug: 12764641
Test: atest
Merged-In: I1ff2dc09f41f76973c5f066b07b15388e722b375
Change-Id: Iddcbc600b7c73d7910e937cb63d5adf20bbc54ac
diff --git a/resolv/libnetd_resolv_test.cpp b/resolv/libnetd_resolv_test.cpp
index ddbd126..f961e79 100644
--- a/resolv/libnetd_resolv_test.cpp
+++ b/resolv/libnetd_resolv_test.cpp
@@ -506,8 +506,9 @@
     std::vector<uint8_t> msg(MAXPACKET, 0);
     const int msgLen = res_mkquery(ns_o_query, host, ns_c_in, nsType, nullptr, 0, nullptr,
                                    msg.data(), MAXPACKET);
+    NetworkDnsEventReported event;
     const int nsendAns = resolv_res_nsend(netContext, msg.data(), msgLen, ansBuf.data(), MAXPACKET,
-                                          &rcode, static_cast<ResNsendFlags>(flag));
+                                          &rcode, static_cast<ResNsendFlags>(flag), &event);
     return toString(ansBuf.data(), nsendAns, (nsType == ns_t_a) ? AF_INET : AF_INET6);
 }