Unverified Commit 4801d0c2 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

postgresql17Packages.{pg_cron,pg_hll}: fix build on x86_64-darwin

This fixes the following error:

error: comparison of integers of different signs: 'ssize_t' (aka 'long')
and 'const size_t' (aka 'const unsigned long') [-Werror,-Wsign-compare]
                if (part < iov[i].iov_len)
                    ~~~~ ^ ~~~~~~~~~~~~~~
parent d1478e78
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -165,6 +165,12 @@ let
        src = ./patches/locale-binary-path.patch;
        locale = "${if stdenv.hostPlatform.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale";
      })
    ] ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "17") [
      # TODO: Remove this with the next set of minor releases
      (fetchpatch ({
        url = "https://github.com/postgres/postgres/commit/0a883a067bd78f0ff0607afb18c4f783ac764504.patch";
        hash = "sha256-F3zCaar6w6bwQDno7Tkg7ZbPJ+rhgi8/2NSvFakzQek=";
      }))
    ] ++ lib.optionals (olderThan "17") [
      # TODO: Remove this with the next set of minor releases
      (fetchpatch (