diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 4c2b110bbcf..e3486ac33cc 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -2070,7 +2070,7 @@ kotlinNativeInterop { } sockets { - defFile '../../samples/socket/src/main/c_interop/sockets.def' + defFile 'interop/basics/sockets.def' flavor 'native' } diff --git a/samples/socket/src/main/c_interop/sockets.def b/backend.native/tests/interop/basics/sockets.def similarity index 87% rename from samples/socket/src/main/c_interop/sockets.def rename to backend.native/tests/interop/basics/sockets.def index f052a0a324f..bacfa1315a8 100644 --- a/samples/socket/src/main/c_interop/sockets.def +++ b/backend.native/tests/interop/basics/sockets.def @@ -7,6 +7,6 @@ static int interop_errno() { return errno; } -static int interop_htons(int x) { +static short interop_htons(short x) { return htons(x); }