From a7660b89e0fa5f1b7e33d871a38418ca5963f4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 3 Dec 2025 22:33:47 +0100 Subject: [PATCH] Fix builds with recent C compilers nabijaczleweli@tarta:~/work/bsontest$ iex -S mix Erlang/OTP 25 [erts-13.1.5] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns] ===> Fetching pc v1.15.0 ===> Analyzing applications... ===> Compiling pc ===> Compiling /home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c ===> /home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c:49:5: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | memset(*pbuf, 0, len - (*size)); | ^ /home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c:49:5: note: include the header or explicitly provide a declaration for 'memset' 1 error generated. ** (Mix) Could not compile dependency :inotify, "/home/nabijaczleweli/.mix/elixir/1-17/rebar3 bare compile --paths /home/nabijaczleweli/work/bsontest/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile inotify --force", update it with "mix deps.update inotify" or clean it with "mix deps.clean inotify" Sponsored-by: https://beaverlabs.net --- c_src/erl_comm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/c_src/erl_comm.c b/c_src/erl_comm.c index ef64dc9..c6fefce 100644 --- a/c_src/erl_comm.c +++ b/c_src/erl_comm.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include "erl_comm.h"