lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

lsof: Fix build on darwin.

+16
+12
pkgs/development/tools/misc/lsof/darwin-dfile.patch
··· 1 + diff -Naur a/dialects/darwin/libproc/dfile.c b/dialects/darwin/libproc/dfile.c 2 + --- a/dialects/darwin/libproc/dfile.c 2018-02-14 09:28:06.000000000 -0500 3 + +++ b/dialects/darwin/libproc/dfile.c 2018-04-16 18:52:40.828715293 -0400 4 + @@ -43,7 +43,7 @@ 5 + #include "lsof.h" 6 + 7 + #if defined(PROC_FP_GUARDED) 8 + -#extern struct pff_tab Pgf_tab[]; 9 + +extern struct pff_tab Pgf_tab[]; 10 + #endif /* defined(PROC_FP_GUARDED) */ 11 + 12 +
+4
pkgs/development/tools/misc/lsof/default.nix
··· 28 28 29 29 unpackPhase = "tar xvjf $src; cd lsof_*; tar xvf lsof_*.tar; sourceRoot=$( echo lsof_*/); "; 30 30 31 + patches = stdenv.lib.optional stdenv.isDarwin ./darwin-dfile.patch; 32 + 31 33 postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' 32 34 substituteInPlace dialects/linux/dlsof.h --replace "defined(__UCLIBC__)" 1 35 + '' + stdenv.lib.optionalString stdenv.isDarwin '' 36 + sed -i 's|lcurses|lncurses|g' Configure 33 37 ''; 34 38 35 39 # Stop build scripts from searching global include paths