Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: mDNSResponder Compling issues - Solaris
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mDNSResponder Compling issues - Solaris



Oops, a case of seeing what I expect, not what's there.

I would not expect any system to have an sa_family field inside
sockaddr_storage.  The only choices I've seen are ss_family or
__ss_family.  (RFC 2553 says __ss_family; RFC 3493 and POSIX 1003.1-2001
say ss_family).

I use this autoconf code for this:
dnl Check for sockaddr_storage.
dnl If it's present, check for ss_family.
dnl If ss_family isn't there, check for __ss_family and
dnl  #define ss_family __ss_family if so.
dnl If neither is there, I don't know what to do.
dnl
AC_CHECK_TYPES([struct sockaddr_storage],
  AC_CHECK_MEMBER([struct sockaddr_storage.ss_family],,
   AC_CHECK_MEMBER([struct sockaddr_storage.__ss_family],
    AC_DEFINE([ss_family],[__ss_family],[define to __ss_family if sockaddr_storage has that instead of ss_family]),
    AC_MSG_ERROR([cannot find ss_family in sockaddr_storage]),[
#include <sys/types.h>
#include <sys/socket.h>]),[
#include <sys/types.h>
#include <sys/socket.h>]),,[
#include <sys/types.h>
#include <sys/socket.h>])

  Bill
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.