]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: Ensure notify example includes <string.h>
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Wed, 21 Aug 2024 14:35:58 +0000 (09:35 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Aug 2024 19:26:32 +0000 (04:26 +0900)
This ensures that memcpy and strerror are defined.  This is especially
important with GCC 14 as implicit function declarations are now an error.

man/notify-selfcontained-example.c

index 6bbe4f2e3bade2e3bf9da8d87d9adacfa1d5613b..3498d508430d93a30cccb4780313b4619a3eceb4 100644 (file)
@@ -15,6 +15,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <time.h>