$NetBSD: patch-bf,v 1.1 2007/12/16 14:49:43 drochner Exp $

--- ./plugins/document-manager/anjuta-docman.c.orig	2007-08-13 23:38:56.000000000 +0200
+++ ./plugins/document-manager/anjuta-docman.c
@@ -84,6 +84,7 @@ static void anjuta_docman_grab_text_focu
 static void on_notebook_switch_page (GtkNotebook * notebook,
 									 GtkNotebookPage * page,
 									 gint page_num, AnjutaDocman *docman);
+static gchar *get_real_path(const gchar *);
 
 static void
 on_text_editor_notebook_close_page (GtkButton* button, 
@@ -926,7 +927,7 @@ anjuta_docman_goto_file_line_mark (Anjut
 	/* Get the normalized file path for comparision */
 	is_local_uri = gnome_vfs_uri_is_local (vfs_uri);
 	if (is_local_uri)
-		normalized_path = realpath (gnome_vfs_uri_get_path (vfs_uri), NULL);
+		normalized_path = get_real_path (gnome_vfs_uri_get_path (vfs_uri));
 	if (normalized_path == NULL)
 		normalized_path = g_strdup (uri);
 	
@@ -958,8 +959,7 @@ anjuta_docman_goto_file_line_mark (Anjut
 		vfs_uri = gnome_vfs_uri_new (te_uri);
 		te_is_local_uri = gnome_vfs_uri_is_local (vfs_uri);
 		if (te_is_local_uri)
-			te_normalized_path = realpath (gnome_vfs_uri_get_path (vfs_uri),
-										   NULL);
+			te_normalized_path = get_real_path (gnome_vfs_uri_get_path (vfs_uri));
 		if (te_normalized_path == NULL)
 			te_normalized_path = g_strdup (te_uri);
 		gnome_vfs_uri_unref (vfs_uri);
