Chapter 6, Developing distributed applications using ONC RPC and XDR
Compiling programs that contain XDR routines

Compiling programs that contain XDR routines

If your C programs use XDR routines, include the header file <rpc/rpc.h>. This file contains all the necessary interfaces to XDR.