If I build d3dim for example on Mac OS X, I get an error fom winebuild saying that there is no symbol to list, and the result of this is an error (code 0x100). This patch prevent winebuild from throwing an error.
Thanks ;)
Pierre
ChangeLog: - no fatal error if nm doesn't have any symbol to list.
Index: tools/winebuild/import.c =================================================================== RCS file: /home/wine/wine/tools/winebuild/import.c,v retrieving revision 1.49 diff -u -r1.49 import.c --- tools/winebuild/import.c 10 Apr 2003 18:36:40 -0000 1.49 +++ tools/winebuild/import.c 11 May 2003 18:53:10 -0000 @@ -666,7 +666,12 @@ if (p[0] == 'U' && p[1] == ' ' && p[2]) p += 2; add_undef_symbol( p ); } - if ((err = pclose( f ))) fatal_error( "nm -u %s error %d\n", name, err ); + if ((err = pclose( f ))) + { + if( err == 256) /* empty file : no name list simply ignore */ + return; + fatal_error( "nm -u %s error %d\n", name, err ); + } }