Re: how to check for a struct in multiple headers?

2006-03-31 Thread Hasso Tepper
Tanner Lovelace wrote: Actually, not even that will work due to how the code is written. kmountpoint.cpp has this: #if defined(HAVE_STRUCT_STATVFS) struct statvfs *mounted; #elif defined(HAVE_STRUCT_STATFS) struct statfs *mounted; #endif So, even if it finds

how to check for a struct in multiple headers?

2006-03-30 Thread Benjamin Reed
I need to make the test for statfs try sys/mount.h, currently I get the following when compiling kdecore: ---(snip!)--- /Users/ranger/cvs/kdelibs/kdecore/kmountpoint.cpp: In static member function 'static QListKSharedPtrKMountPoint KMountPoint::currentMountPoints(int)':

Re: how to check for a struct in multiple headers?

2006-03-30 Thread Tanner Lovelace
On 3/30/06, Benjamin Reed [EMAIL PROTECTED] wrote: I need to make the test for statfs try sys/mount.h, currently I get the following when compiling kdecore: ---(snip!)--- What I really want is for HAVE_STRUCT_STATFS to be set if struct statfs is in sys/statfs.h *or* sys/mount.h. Actually,