[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] MiNT lib 55
"Guido Flohr" <gufl0000@stud.uni-sb.de> writes:
|> Hi,
|>
|> On Wed, May 24, 2000 at 03:56:41PM +0200, Konrad M. Kokoszkiewicz wrote:
|> > > > 2) Where the macro S_IFBLK is defined (in PL 49 it was)?
|> > >
|> > > See reply to Q-Funk. Add -D_BSD_SOURCE to your CFLAGS and then read
|> > > NOTES. ;-)
|> >
|> > Sorry, my mistake: I meant S_IFSOCK... and also sys/types.h seems to
|>
|> S_IFSOCK was introduced only this month, it didn't vanish, it's new
|> altogether. Anyway, the same cure helps, use -D_BSD_SOURCE.
|>
|> BTW: There is an annoying typo in the new sys/stat.h, a couple of lines
|> below:
|>
|> #define S_ISSOCK ((m & S_IFMT) == S_IFSOCK)
|>
|> should read
|>
|> #define S_ISSOCK(m) ((m & S_IFMT) == S_IFSOCK)
Actually, it should read:
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg