From 8f47bf194dc0e57ef9c318ced24e01c5d8f8d537 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 2 Aug 2005 15:14:41 +0000 Subject: [PATCH] * Workaround for the problems OS X 10.4 has with ioctl(..., SIOCGIFCONF, ...). Suggested by Apple Engineering. This commit was SVN r6703. --- opal/util/if.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opal/util/if.c b/opal/util/if.c index 511e35197b..51704d5065 100644 --- a/opal/util/if.c +++ b/opal/util/if.c @@ -39,7 +39,16 @@ #include #endif #ifdef HAVE_NET_IF_H +#if defined(__DARWIN_ALIGN_POWER) && __DARWIN_ALIGN_POWER +/* Apple engineering suggested this as a workaround for a bug in OS X + * 10.4 (Tiger) that prevented ioctl(..., SIOCGIFCONF, ...) from + * working properly in 64 bit mode */ +#pragma options align=power +#endif #include +#if defined(__DARWIN_ALIGN_POWER) && __DARWIN_ALIGN_POWER +#pragma options align=reset +#endif #endif #ifdef HAVE_NETDB_H #include