mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
dma segfaulted when built without string.h. Fixes: #11701 Submitted upstream: https://github.com/corecode/dma/pull/58 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
30 lines
710 B
Diff
30 lines
710 B
Diff
From 60cf6f03a4b13ec0e491a282ab5233a1619a7a66 Mon Sep 17 00:00:00 2001
|
|
From: Michael Tremer <michael.tremer@ipfire.org>
|
|
Date: Tue, 24 Apr 2018 12:30:13 +0100
|
|
Subject: [PATCH] net.c: Include string.h
|
|
|
|
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 | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/net.c b/net.c
|
|
index a1cc3e3bfd79..221dda131a23 100644
|
|
--- 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>
|
|
|
|
--
|
|
2.14.3
|
|
|