X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-bcast.c;h=45a638532e786a809851e48a4f49d7f7b3eedcc7;hb=20379f03fc80f4c2cb52d53103978c8141994c50;hp=e9974a8ee7eb65c7adb675ca7ee6939d243c4aea;hpb=bff8fe460dcf4b25071fff966d86877b30eeec90;p=deb_libnfs.git diff --git a/examples/nfsclient-bcast.c b/examples/nfsclient-bcast.c index e9974a8..45a6385 100644 --- a/examples/nfsclient-bcast.c +++ b/examples/nfsclient-bcast.c @@ -37,7 +37,10 @@ #include #include #include + +#ifdef HAVE_SYS_TIME_H #include +#endif #ifdef HAVE_NET_IF_H #include @@ -209,7 +212,7 @@ int main(int argc _U_, char *argv[] _U_) exit(10); } - if (rpc_pmap_callit_async(rpc, MOUNT_PROGRAM, 2, 0, NULL, 0, pm_cb, &data) < 0) { + if (rpc_pmap2_callit_async(rpc, MOUNT_PROGRAM, 2, 0, NULL, 0, pm_cb, &data) < 0) { printf("Failed to set up callit function\n"); exit(10); }