Re: pthread_cond_init$UNIX2003 not found on 10.4
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