OS X Leopard fixes from Giulio Eulisse
This commit is contained in:
parent
6a779c394b
commit
c68860f056
|
@ -5,7 +5,7 @@
|
|||
# This script reads filenames from STDIN and outputs any relevant provides
|
||||
# information that needs to be included in the package.
|
||||
|
||||
filelist=$(sed -n -e '/\.dylib/p' -e '/\.so/p' -e '/\.bundle/p' | sort | uniq | xargs file -L 2>/dev/null | grep "Mach-O.*ppc" | cut -d: -f1)
|
||||
filelist=$(sed -n -e '/\.dylib/p' -e '/\.so/p' -e '/\.bundle/p' | sort | uniq | xargs file -L 2>/dev/null | grep "Mach-O.*\(ppc\|i386\)" | cut -d: -f1)
|
||||
|
||||
for f in $filelist; do
|
||||
libname=$(basename $f | sed -e 's;\..*;;')
|
||||
|
|
|
@ -58,9 +58,7 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
|
|||
#endif
|
||||
#if defined(__APPLE__)
|
||||
# define __errno_location() (__error())
|
||||
# define stat64 stat
|
||||
# define _STAT_VER 0
|
||||
# define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
|
||||
#endif
|
||||
#include "system.h"
|
||||
#include "rpmio/fts.h"
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
# define _D_EXACT_NAMLEN(d) ((d)->d_reclen)
|
||||
# define _D_EXACT_NAMLEN(d) (strlen((d)->d_name))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue