Unverified Commit be764b3e authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

wdfs: fix Darwin build by setting CFLAGS=-std=gnu17 (#512572)

parents c383de5e 7f9288e3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ stdenv.mkDerivation (finalAttrs: {
    neon
  ];

  # autoconf 2.72 sets the C standard to C23 but not all compilers are ready for that
  configureFlags = [
    "CFLAGS=-std=gnu17"
  ];

  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    # Fix the build on macOS with macFUSE installed. Needs autoreconfHook to
    # take effect.