From 6592bdb9126326dee00f5e0d90b1cbb393f90096 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 26 Jul 2016 18:10:39 +0200 Subject: import musl memmem --- rfc2045.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rfc2045.c') diff --git a/rfc2045.c b/rfc2045.c index e919b28..4738894 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -1,5 +1,3 @@ -#define _GNU_SOURCE - #include #include @@ -134,7 +132,7 @@ blaze822_multipart(struct message *msg, struct message **imsg) else prevpart = msg->body; - char *part = memmem(prevpart, msg->bodyend - prevpart, mboundary, boundarylen); + char *part = mymemmem(prevpart, msg->bodyend - prevpart, mboundary, boundarylen); if (!part) return 0; /// XXX access to stuff before first boundary? @@ -148,7 +146,7 @@ blaze822_multipart(struct message *msg, struct message **imsg) else return 0; // XXX error condition? - char *nextpart = memmem(part, msg->bodyend - part, mboundary, boundarylen); + char *nextpart = mymemmem(part, msg->bodyend - part, mboundary, boundarylen); if (!nextpart) return 0; // XXX error condition -- cgit 1.4.1