Unverified Commit 01b6809f authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

mariadb: fix build on x86_64-darwin (#454507)

parents 09d743bd 47e4f9f8
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -116,9 +116,14 @@ let
        prePatch = ''
          sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
        '';
        env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) {
        env =
          lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) {
            # MariaDB uses non-POSIX fopen64, which musl only conditionally defines.
            NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE";
          }
          // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) {
            # Detection of netdb.h doesnt work for some reason on x86_64-darwin
            NIX_CFLAGS_COMPILE = "-DHAVE_NETDB_H";
          };

        patches = [