diff options
| -rw-r--r-- | repos/extra/dhcpcd/abuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/repos/extra/dhcpcd/abuild b/repos/extra/dhcpcd/abuild index d4efdaf1..e66f4578 100644 --- a/repos/extra/dhcpcd/abuild +++ b/repos/extra/dhcpcd/abuild @@ -6,3 +6,9 @@ source="https://github.com/NetworkConfiguration/$name/releases/download/v$versio sv="run" build_opt="--without-udev" +prebuild() { + # fix when using libressl + if [ -f $SPM_PKGDB/libressl ]; then + sed -i 's/RAND_priv_bytes/RAND_pseudo_bytes/g' compat/arc4random.c + fi +} |