diff --git a/recipes/libjaylink/build.bat b/recipes/libjaylink/build.bat index 78757c71f8e4f..87d1e28822563 100644 --- a/recipes/libjaylink/build.bat +++ b/recipes/libjaylink/build.bat @@ -10,8 +10,8 @@ pushd !SRC_DIR! || exit /b 1 --buildtype=release ^ --default-library=shared ^ --strip ^ - --backend=ninja ^ - -Dc_args="-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS" + --backend=ninja +:: -Dc_args="-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS" if errorlevel 1 exit 1 meson compile -C build-!PKG_NAME! diff --git a/recipes/libjaylink/fix-socket-to-int.patch b/recipes/libjaylink/fix-socket-to-int.patch new file mode 100644 index 0000000000000..26a5e82cc363c --- /dev/null +++ b/recipes/libjaylink/fix-socket-to-int.patch @@ -0,0 +1,5 @@ +--- a/libjaylink/discovery_tcp.c ++++ b/libjaylink/discovery_tcp.c +@@ -232,1 +232,1 @@ +- int sock; ++ SOCKET sock; diff --git a/recipes/libjaylink/recipe.yaml b/recipes/libjaylink/recipe.yaml index 7a38c6af1d1a4..b4bbd3fccb0d2 100644 --- a/recipes/libjaylink/recipe.yaml +++ b/recipes/libjaylink/recipe.yaml @@ -12,6 +12,10 @@ package: source: url: https://gitlab.zapb.de/libjaylink/libjaylink/-/archive/${{ version }}/libjaylink-${{ version }}.tar.gz sha256: 5557d623934a4bbc053c11f9a181375d7abeb76af910696d9e3d9b1de3bf6987 + patches: + - if: win + then: + - fix-socket-to-int.patch build: number: ${{ build_num }}