On Thu, Jul 24, 2003 at 04:50:35AM +0200, almisr wrote:
> in /usr/include/ppc/param.h
> 
> line 98
> 
> #define       btodb(bytes)            /***plumber***? takes two flags no 
> ->, devBlockSize******/ /* calculates (bytes / DEV_BSIZE) */
> 
> it should be btodb(bytes, devBlockSize)
> 
>       ((unsigned)(bytes) >> DEV_BSHIFT)
> #define       dbtob(db)               /***plumber***? takes two flags no  
> ->, devBlockSize******/ /* calculates (db * DEV_BSIZE) */
>       ((unsigned)(db) << DEV_BSHIFT)
> #endif
> 
> is it an error of Apple ?

I have no idea what you are trying to say, but my param.h says:

#ifdef __APPLE__
#define  btodb(bytes, devBlockSize)         \
        ((unsigned)(bytes) / devBlockSize)
#define  dbtob(db, devBlockSize)            \
             ((unsigned)(db) * devBlockSize)
#else
#define btodb(bytes)                    /* calculates (bytes / DEV_BSIZE) */ \
        ((unsigned)(bytes) >> DEV_BSHIFT)
#define dbtob(db)                       /* calculates (db * DEV_BSIZE) */ \
        ((unsigned)(db) << DEV_BSHIFT)
#endif


__APPLE__ is defined when you compile on a mac, so you get the first set
of defines (with two parameters.)

-- 
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to