summaryrefslogtreecommitdiffstats
path: root/src/portmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/portmap.c')
-rw-r--r--src/portmap.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/portmap.c b/src/portmap.c
index fbd73f3..e3c26ce 100644
--- a/src/portmap.c
+++ b/src/portmap.c
@@ -4,15 +4,21 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include <rpc/xdr.h>
-#include <rpc/rpc_msg.h>
-#include <rpc/pmap_prot.h>
-#include <rpcsvc/yp_prot.h>
#include <errno.h>
#include <poll.h>
#include <time.h>
+#ifdef HAVE_DIRSRV_SLAPI_PLUGIN_H
+#include <nspr.h>
+#include <nss.h>
#include <dirsrv/slapi-plugin.h>
+#else
+#include <slapi-plugin.h>
+#endif
+
+#include <rpc/xdr.h>
+#include <rpc/pmap_prot.h>
+#include <rpcsvc/yp_prot.h>
#include "portmap.h"