• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question about properly detecting the targeted Mac OS X build system.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about properly detecting the targeted Mac OS X build system.


  • Subject: Question about properly detecting the targeted Mac OS X build system.
  • From: Terry Simons <email@hidden>
  • Date: Wed, 31 Oct 2007 02:47:16 -0600

Hi,

I'm trying to work around an issue with a piece of code that isn't supported in Mac OS X 10.3.

My current workaround seems somewhat brute-force:

#ifdef __APPLE__
// We need to find something to replace the below sysconf call with
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
#warning Mac OS X 10.3 and earlier do not define _SC_GETGR_R_SIZE_MAX.
#else
buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
#endif
#else
buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
#endif


Am I handling this correct?

What's the proper manner to deal with this sort of thing?

Thanks!

- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Question about properly detecting the targeted Mac OS X build system.
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Any way to get tiny "clear console" button back?
  • Next by Date: Re: Xcode 2.5: no uninstall.pl
  • Previous by thread: Re: Any way to get tiny "clear console" button back?
  • Next by thread: Re: Question about properly detecting the targeted Mac OS X build system.
  • Index(es):
    • Date
    • Thread