See attachement for this compile error fix.
$ uname -a
SunOS 5.9 Generic_122300-35 sun4u sparc
$ make
...
osd.c: In function `osd_getPid':
osd.c:519: error: `__pid_t' undeclared (first use in this function)
osd.c:519: error: (Each undeclared identifier is reported only once
osd.c:519: error: for each function it appears in.)
osd.c:519: error: syntax error before "pid"
osd.c:522: error: `pid' undeclared (first use in this function)
make[3]: *** [osd.o] Error 1
make[3]: Leaving directory `/mnt/cc/staff-f/jaalto/tmp/compile/src'
make[2]: *** [Headers/flag_codes.gen] Error 2
make[2]: Leaving directory `/mnt/cc/staff-f/jaalto/tmp/compile/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/cc/staff-f/jaalto/tmp/compile'
make: *** [all] Error 2
Also fixes OSX and appears to have made its way into the brew formula for splint