2010-08-29 10:47:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Splint < Formula
|
2010-08-29 10:47:31 +00:00
|
|
|
url 'http://www.splint.org/downloads/splint-3.1.2.src.tgz'
|
|
|
|
homepage 'http://www.splint.org/'
|
|
|
|
md5 '25f47d70bd9c8bdddf6b03de5949c4fd'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
# fix compiling error of osd.c
|
|
|
|
DATA
|
|
|
|
end
|
2010-09-02 14:10:45 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}", "--mandir=#{man}"
|
|
|
|
system "make"
|
|
|
|
ENV.j1 # Install fails on 8-core without this.
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-08-29 10:47:31 +00:00
|
|
|
end
|
2010-09-02 14:10:45 +00:00
|
|
|
|
|
|
|
|
2010-08-29 10:47:31 +00:00
|
|
|
__END__
|
|
|
|
diff --git a/src/osd.c b/src/osd.c
|
|
|
|
index ebe214a..4ba81d5 100644
|
|
|
|
--- a/src/osd.c
|
|
|
|
+++ b/src/osd.c
|
|
|
|
@@ -516,7 +516,7 @@ osd_getPid ()
|
|
|
|
# if defined (WIN32) || defined (OS2) && defined (__IBMC__)
|
|
|
|
int pid = _getpid ();
|
|
|
|
# else
|
|
|
|
- __pid_t pid = getpid ();
|
|
|
|
+ pid_t pid = getpid ();
|
|
|
|
# endif
|
|
|
|
|
|
|
|
return (int) pid;
|