]> git.ipfire.org Git - people/ms/dma.git/commitdiff
net.c: Include string.h compile-fixes
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Apr 2018 11:30:13 +0000 (12:30 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Apr 2018 11:30:13 +0000 (12:30 +0100)
Various functions that have been used come from string.h. GCC compiled
dma without this header, but unfortunately the binary segfaulted at random
times.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
net.c

diff --git a/net.c b/net.c
index a1cc3e3bfd7970dfa37d68fbfbefcc3da831fda2..221dda131a23fefdae725d807eee3c740071ef1f 100644 (file)
--- a/net.c
+++ b/net.c
@@ -53,6 +53,7 @@
 #include <netdb.h>
 #include <setjmp.h>
 #include <signal.h>
+#include <string.h>
 #include <syslog.h>
 #include <unistd.h>