|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] OT: C question: anyone know what a SunOS box defines?
|
> I *think* it's __SunOS__. (Pretty easy to check.)
I'll know in a second...the remote build is running now...
> > Or should I just #include ioctl.h to get the SIOCGI* defines?
>
> Guh. That strikes me as clumsy. (But I guess I couldn't be sure
> without a bit more detail about what you plan to do with those
> #defines after you've #included them...)
Yeah. I was already including sys/ioctl.h for something else and it
didn't work on the Sun box for some reason...so now I've got another
maintenence enhancing #if block:
#if defined __SunOS__
#include <sys/sockio.h>
#endif
I'm iterateing through the local AF_INET4 interfaces on the host and
checking wether they're up or not.
namespace Foo {
class IPV4Interface : public Object {
...
static bool getInetInterfaceList( vector<IPV4Interface*>& );
};
}
The sunbox is slow...and it doesn't even have makdepend!
Kyle
--
------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
-- Christmas Humphreys
mortis@voicenet.com http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|