laforge submitted this change.
compatibility with kernel >= 7.2 which removed strncpy
In commit 079a028d6327e68cfa5d38b36123637b321c19a7 the kernel removed
strncpy. Let's use strscpy instead.
Change-Id: I11a16ffed90223cbeae456a26834c0342146eb88
---
M include/dahdi/kernel.h
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 47d92f5..bddf768 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -1722,4 +1722,9 @@
#define UEVENT_CONST
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0)
+#include <linux/string.h>
+#define strncpy strscpy
+#endif
+
#endif /* _DAHDI_KERNEL_H */
To view, visit change 42898. To unsubscribe, or for help writing mail filters, visit settings.