[splint-discuss] Patch for splint to compile on mac os x

Marian Such toxygen1 at gmail.com
Wed Aug 6 15:35:29 PDT 2008


On Aug 6, 2008, at 11:16 PM, Roland Illig wrote:

> Marian Such schrieb:
>> # diff -u src/osd.c src/osd_new.c
>> --- src/osd.c   2007-07-14 00:18:20.000000000 +0200
>> +++ src/osd_new.c       2008-08-06 21:26:09.000000000 +0200
>> @@ -515,6 +515,8 @@
>>  {
>>  # if defined (WIN32) || defined (OS2) && defined (__IBMC__)
>>    int pid = _getpid ();
>> +# elif defined (__APPLE__)
>> +  __darwin_pid_t pid = getpid ();
>
> Why do you need __darwin_pid_t here? Shouldn't just pid_t suffice?
>
> Roland

you are right, it's sufficient.

serenity:~ toxygen$ grep pid_t /usr/include/sys/types.h | grep -v _id_t
typedef __darwin_pid_t          pid_t;
serenity:~ toxygen$

but pid_t is more correct I guess. Can someone commit it to cvs rep?

Marian


More information about the splint-discuss mailing list