1
1

* Workaround for the problems OS X 10.4 has with ioctl(..., SIOCGIFCONF, ...).

Suggested by Apple Engineering.

This commit was SVN r6703.
Этот коммит содержится в:
Brian Barrett 2005-08-02 15:14:41 +00:00
родитель 4a748d62ae
Коммит 8f47bf194d

Просмотреть файл

@ -39,7 +39,16 @@
#include <arpa/inet.h>
#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 <net/if.h>
#if defined(__DARWIN_ALIGN_POWER) && __DARWIN_ALIGN_POWER
#pragma options align=reset
#endif
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>