diff --git a/build/patch/buildpatch.ksh b/build/patch/buildpatch.ksh
index 7bdbff8d1b0ab91fda9fa1b61a5b9ccc31bbe8c6..e19c85be23f9693ef416ed4bde415b9b1216bd32 100644
--- a/build/patch/buildpatch.ksh
+++ b/build/patch/buildpatch.ksh
@@ -19,5 +19,5 @@ export newdir=modified_dir
 
 echo ----- Building patch file mypatch.patch -----
 echo Build patch between \"$olddir\" and \"$newdir\" 
-diff -Naur --exclude=CVS --exclude="*.patch" --exclude=".#*" --exclude="*~" --exclude="*.rej" --exclude="*.orig" --exclude="*.bak" --exclude=conf.php --exclude=documents  $olddir  $newdir  > mypatch.patch
+diff -BNaur --exclude=CVS --exclude="*.patch" --exclude=".#*" --exclude="*~" --exclude="*.rej" --exclude="*.orig" --exclude="*.bak" --exclude=conf.php --exclude=documents  $olddir  $newdir  > mypatch.patch