[splint-discuss] Patch for splint to compile on mac os x
Marian Such
toxygen1 at gmail.com
Wed Aug 6 12:27:29 PDT 2008
# 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 ();
# else
__pid_t pid = getpid ();
# endif
On Aug 6, 2008, at 8:59 PM, Marian Such wrote:
I hurried a little bit. This is more nice and does the same job in
nicer manner.
Marian
> Hello,
> here is patch to make splint compile without error on Mac OS X.
>
> # 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 20:41:21.000000000 +0200
> @@ -515,6 +515,8 @@
> {
> # if defined (WIN32) || defined (OS2) && defined (__IBMC__)
> int pid = _getpid ();
> +# elif __APPLE__
> + __darwin_pid_t pid = getpid ();
> # else
> __pid_t pid = getpid ();
> # endif
>
> Regards
>
> Marian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080806/22452b53/attachment.html
More information about the splint-discuss
mailing list