corkscrew: fix build on Darwin

Define ANSI_FUNC so corkscrew uses ANSI C function definitions instead of legacy K&R definitions rejected by modern Clang/C23.

Assisted-by: OpenCode (openai/gpt-5.5)
This commit is contained in:
Georgy Charkseliani 2026-05-21 18:57:56 +02:00
commit 47eb5f6f4d
No known key found for this signature in database
GPG key ID: CBCA04A2DD96DA37

View file

@ -17,6 +17,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ autoreconfHook ];
env.NIX_CFLAGS_COMPILE = "-DANSI_FUNC";
meta = {
homepage = "https://github.com/bryanpkc/corkscrew";
description = "Tool for tunneling SSH through HTTP proxies";