cmake: search for xdr functions in tirpc as well

At some point in the relatively recent past, rpc/rpc.h apparently got moved
from glibc to libtirpc.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 3 insertions(+), 2 deletions(-)

M cmake/Modules/Findrpc.cmake
M cmake/Modules/Findrpc.cmake +3 -2
@@ 29,14 29,15 @@ 
 #   RPC_FOUND
 #
 
-find_path(RPC_INCLUDE_DIR rpc/rpc.h)
+find_path(RPC_INCLUDE_DIR rpc/rpc.h
+	HINTS /usr/include/tirpc)
 
 check_function_exists(xdr_opaque HAVE_XDR_OPAQUE)
 if(HAVE_XDR_OPAQUE)
 	set(RPC_LIBRARY)
 	set(RPC_LIBRARY_ACTUAL libc)
 else()
-	foreach(lib nsl)
+	foreach(lib nsl;tirpc)
 		string(TOUPPER ${lib} libname)
 		check_library_exists(${lib} xdr_opaque "" HAVE_${libname}_XDR_OPAQUE)
 		if(HAVE_${libname}_XDR_OPAQUE)