* Lars Täuber:

> I'm not a programmer but solved it eventually.

Good. I can confirm the compile failure on a current Debian/unstable
box. It's a bug in the source code.

> There is no <sys/stat.h> file in the system. 

Yes, there should be, as part of libc6-dev.
(/usr/include/i386-linux-gnu/sys/stat.h in my case.)

> So I added
> #include <sys/stat.h>
> to device.c and it compiled.

This is a sane solution.

> How does this work?

S_ISBLK is a macro that is expanded by the preprocessor. If it is not
available becaus sys/stat.h has not been included, the compiler will
assume that it S_ISBLK is a function so it turns it into a symbol that
the linker has to resolve.

HTH,
-Hilko

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Aoetools-discuss mailing list
Aoetools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to