  LIBS_FISHD=$LIBS
  LIBS=$LIBS_COMMON
  
-diff -ur fish-1.23.1.org/function.c fish-1.23.1/function.c
---- fish-1.23.1.org/function.c	2009-03-08 15:46:47.016252928 +0100
-+++ fish-1.23.1/function.c	2009-10-21 13:29:56.943980544 +0200
-@@ -125,12 +125,12 @@
- 	tokenize_variable_array( path_var, &path_list );
- 	for( i=0; i<al_get_count( &path_list ); i++ )
- 	{
-+		struct wdirent *next;
- 		wchar_t *ndir = (wchar_t *)al_get( &path_list, i );
- 		DIR *dir = wopendir( ndir );
- 		if( !dir )
- 			continue;
- 		
--		struct wdirent *next;
- 		while( (next=wreaddir(dir))!=0 )
- 		{
- 			wchar_t *fn = next->d_name;
-diff -ur fish-1.23.1.org/proc.c fish-1.23.1/proc.c
---- fish-1.23.1.org/proc.c	2009-03-08 15:46:47.002621440 +0100
-+++ fish-1.23.1/proc.c	2010-08-16 18:43:25.155713536 +0200
-@@ -482,8 +482,11 @@
+diff --git a/proc.c b/proc.c
+index edcc7c6..30dd96f 100644
+--- a/proc.c
++++ b/proc.c
+@@ -482,8 +482,11 @@ static void handle_child_status( pid_t pid, int status )
  	return;
  }
  

 if test $target_cpu = powerpc; then
 	AC_DEFINE([TPUTS_KLUDGE],[1],[Evil kludge to get Power based machines to work])
 fi
@@ -502,7 +513,7 @@
 # Check for os dependant libraries for all binaries.
 LIBS_COMMON=$LIBS
 LIBS=""

 	else
 		AC_MSG_RESULT(no)
 	fi
@@ -142,6 +143,12 @@ AC_CONFIG_HEADERS(config.h)
 
 
 #
