• 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
Re: pthread_cond_init$UNIX2003 not found on 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pthread_cond_init$UNIX2003 not found on 10.4


  • Subject: Re: pthread_cond_init$UNIX2003 not found on 10.4
  • From: Peter O'Gorman <email@hidden>
  • Date: Wed, 28 Nov 2007 12:07:42 -0600

Hugh Sontag wrote:
> From "cdefs.h":
>
>  * LEGACY    Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
>  *        API extensions in scope.
>
> If you define _NONSTD_SOURCE in your prefix file I believe you'll get an
> app that won't break on Tiger. I defined it as "1", but I believe it
> doesn't matter what you use as the definition.

It really should not be necessary to define _NONSTD_SOURCE.
$ cat read.c
#include <sys/types.h>
#include <unistd.h>

ssize_t myread(int d, void *buf, size_t nbytes) {
        return read(d,buf,nbytes);
}
$ cc -c read.c
$ nm read.o
00000000 T _myread
         U _read$UNIX2003
$ cc -c read.c -mmacosx-version-min=10.4
$ nm read.o
00000000 T _myread
         U _read

Use the -mmacosx-version-min flag. I'm pretty sure that Xcode has a
checkbox or something for this.

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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: pthread_cond_init$UNIX2003 not found on 10.4
      • From: Stevo Brock <email@hidden>
References: 
 >pthread_cond_init$UNIX2003 not found on 10.4 (From: Stevo Brock <email@hidden>)
 >Re: pthread_cond_init$UNIX2003 not found on 10.4 (From: Hugh Sontag <email@hidden>)

  • Prev by Date: Re: xcodebuild and build settings
  • Next by Date: Re: 10.2.8 and leopard
  • Previous by thread: Re: pthread_cond_init$UNIX2003 not found on 10.4
  • Next by thread: Re: pthread_cond_init$UNIX2003 not found on 10.4
  • Index(es):
    • Date
    • Thread