File 0782-erts-Include-string.h-for-memcpy-usage-on-Windows.patch of Package erlang

From 1b31fb068b3c02a0d4d0b62983f24344a8a214fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Tue, 5 Nov 2024 14:04:48 +0100
Subject: [PATCH 2/2] erts: Include string.h for memcpy usage on Windows

---
 erts/emulator/beam/erl_nif.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/erts/emulator/beam/erl_nif.h b/erts/emulator/beam/erl_nif.h
index 4dc5958cc9..6f626e513f 100644
--- a/erts/emulator/beam/erl_nif.h
+++ b/erts/emulator/beam/erl_nif.h
@@ -89,6 +89,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <string.h>
 
 #ifdef __cplusplus
 extern "C" {
-- 
2.43.0

openSUSE Build Service is sponsored by