Print this page
687 rpcgen should not generate absolute #includes

@@ -17,10 +17,11 @@
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
 #
 #
+# Copyright 2015 Gary Mills
 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 #
 #
 
 LIBRARY =       libidmap.a

@@ -46,11 +47,12 @@
 LDLIBS +=       -lc -lavl -lnsl -lnvpair -luutil
 
 SRCDIR =        ../common
 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
 
-IDMAP_PROT_X =          $(SRC)/uts/common/rpcsvc/idmap_prot.x
+# Relative path to ensure path to idmap_prot.h is also relative
+IDMAP_PROT_X =          ../../../uts/common/rpcsvc/idmap_prot.x
 
 CFLAGS +=       $(CCVERBOSE)
 CPPFLAGS +=     -D_REENTRANT -I$(SRCDIR)
 
 CERRWARN +=     -_gcc=-Wno-unused-variable