mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
Merge pull request #30038 from jbaum98/splint-darwin
splint: Add darwin support
This commit is contained in:
commit
6e4fb7d0cb
13
pkgs/development/tools/analysis/splint/darwin.patch
Normal file
13
pkgs/development/tools/analysis/splint/darwin.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "02pv8kscsrkrzip9r08pfs9xs98q74c52mlxzbii6cv6vx1vd3f7";
|
||||
};
|
||||
|
||||
patches = [ ./tmpdir.patch ];
|
||||
patches = [ ./tmpdir.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
|
||||
|
||||
buildInputs = [ flex ];
|
||||
|
||||
@ -27,6 +27,6 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user