summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/blob.c b/src/blob.c
index f5d793b..6af22d1 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -14,6 +14,7 @@
#include "apk_blob.h"
#include "apk_hash.h"
+#include "apk_string.h"
char *apk_blob_cstr(apk_blob_t blob)
{
@@ -156,16 +157,6 @@ int apk_blob_cspn(apk_blob_t blob, const apk_spn_match reject, apk_blob_t *l, ap
}
#endif
-#if defined(__APPLE__)
-void *memrchr(const void *m, int c, size_t n)
-{
- const unsigned char *s = m;
- c = (unsigned char)c;
- while (n--) if (s[n]==c) return (void *)(s+n);
- return 0;
-}
-#endif
-
int apk_blob_rsplit(apk_blob_t blob, char split, apk_blob_t *l, apk_blob_t *r)
{
char *sep;