Skip to content

Commit

Permalink
(ref) SOCKET to int
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Dec 13, 2024
1 parent 77c1cd8 commit d65d735
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/libjaylink/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
5 changes: 5 additions & 0 deletions recipes/libjaylink/fix-socket-to-int.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--- a/libjaylink/discovery_tcp.c
+++ b/libjaylink/discovery_tcp.c
@@ -232,1 +232,1 @@
- int sock;
+ SOCKET sock;
4 changes: 4 additions & 0 deletions recipes/libjaylink/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d65d735

Please sign in to comment.