summaryrefslogtreecommitdiff
path: root/link.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-12 18:13:31 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-05-12 18:13:31 +0200
commitf232545c215022de5be5e0b37e0c7130962cc5d0 (patch)
treee4756d11b0402cb8153bc90f48fe2e1e49839031 /link.c
parentb25a51fa5915df87f31a0cc0459cd9f05e17f540 (diff)
built_in: don't redefine memcpy/memset
Redefining memset/memcpy causes problems when building with fortified headers on Alpine Linux. Instead of uncoditionally defining these, explicitely use fmemcpy/fmemset in performance critical paths and otherwise let the compiler decide about optimizations. Fixes #173 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'link.c')
-rw-r--r--link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/link.c b/link.c
index 56b839b..72f513f 100644
--- a/link.c
+++ b/link.c
@@ -1,6 +1,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <linux/sockios.h>
+#include <string.h>
#include <unistd.h>
#include <errno.h>