Index: global/global.c
===================================================================
RCS file: /sources/global/global/global/global.c,v
retrieving revision 1.156
diff -u -p -r1.156 global.c
--- global/global.c	15 Nov 2006 13:08:09 -0000	1.156
+++ global/global.c	26 Nov 2006 13:56:24 -0000
@@ -911,11 +911,9 @@ parsefile(int argc, char **argv, const c
 		/*
 		 * convert path into relative from root directory of source tree.
 		 */
-		path = realpath(av, buf);
+		path = rel2abs(av, cwd, buf, sizeof(buf));
 		if (path == NULL)
-			die("realpath(%s, buf) failed. (errno=%d).", av, errno);
-		if (!isabspath(path))
-			die("realpath(3) is not compatible with BSD version.");
+			die("rel2abs(%s, %s, buf, %d) failed. (errno=%d).", av, cwd, (int)sizeof(buf), errno);
 		/*
 		 * Remove the root part of path and insert './'.
 		 *      rootdir  /a/b/
