X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-bcast.c;h=45a638532e786a809851e48a4f49d7f7b3eedcc7;hb=d663ff20d0e69e8ce026210893398f870b981d97;hp=ae08f16e5fe3f02d681adcbed92b114167ddb585;hpb=7057e733c1465661c410b65d90e4c5d0939f1617;p=deb_libnfs.git diff --git a/examples/nfsclient-bcast.c b/examples/nfsclient-bcast.c index ae08f16..45a6385 100644 --- a/examples/nfsclient-bcast.c +++ b/examples/nfsclient-bcast.c @@ -37,9 +37,18 @@ #include #include #include + +#ifdef HAVE_SYS_TIME_H #include +#endif + +#ifdef HAVE_NET_IF_H #include +#endif + +#ifdef HAVE_NETDB_H #include +#endif #ifdef HAVE_SYS_IOCTL_H #include @@ -203,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); }