libthreadar: fix build on Darwin

+7
+7
pkgs/by-name/li/libthreadar/package.nix
··· 14 14 sha256 = "sha256-wJAkIUGK7Ud6n2p1275vNkSx/W7LlgKWXQaDevetPko="; 15 15 }; 16 16 17 + postPatch = '' 18 + # this field is not present on Darwin, ensure it is zero everywhere 19 + substituteInPlace src/thread_signal.cpp \ 20 + --replace-fail 'sigac.sa_restorer = nullptr;' "" \ 21 + --replace-fail 'struct sigaction sigac;' 'struct sigaction sigac = {0};' 22 + ''; 23 + 17 24 outputs = [ 18 25 "out" 19 26 "dev"