1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (c) 2018 Petr Vorel <pvorel@suse.cz> 4 */ 5 6 #ifndef LAPI_RPC_H__ 7 #define LAPI_RPC_H__ 8 9 #include "config.h" 10 11 #ifdef HAVE_NETCONFIG_H 12 # include <netconfig.h> 13 # include <rpc/rpc.h> 14 # include <rpc/types.h> 15 # include <rpc/xdr.h> 16 # include <rpc/svc.h> 17 #elif defined(HAVE_TIRPC_NETCONFIG_H) 18 # include <tirpc/netconfig.h> 19 # include <tirpc/rpc/rpc.h> 20 # include <tirpc/rpc/types.h> 21 # include <tirpc/rpc/xdr.h> 22 # include <tirpc/rpc/svc.h> 23 #else 24 # error Missing rpc headers! 25 #endif 26 27 #endif /* LAPI_RPC_H__ */ 28