summaryrefslogtreecommitdiffstats
path: root/man/notify-selfcontained-example.c
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-21 16:35:58 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-08-21 21:26:32 +0200
commitb9d326c568e7a8065f56314d453bf19f838702fc (patch)
tree36f2ea0f3552959dea17d9123734bb1602d40183 /man/notify-selfcontained-example.c
parenthwdb: rename hwdb_bin_paths -> HWDB_BIN_PATHS (diff)
downloadsystemd-b9d326c568e7a8065f56314d453bf19f838702fc.tar.xz
systemd-b9d326c568e7a8065f56314d453bf19f838702fc.zip
man: Ensure notify example includes <string.h>
This ensures that memcpy and strerror are defined. This is especially important with GCC 14 as implicit function declarations are now an error.
Diffstat (limited to 'man/notify-selfcontained-example.c')
-rw-r--r--man/notify-selfcontained-example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/man/notify-selfcontained-example.c b/man/notify-selfcontained-example.c
index 6bbe4f2e3b..3498d50843 100644
--- a/man/notify-selfcontained-example.c
+++ b/man/notify-selfcontained-example.c
@@ -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>