aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 07:16:19 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 07:16:19 +0100
commit395be9a8fb85d172dcbb06826aed8b5b29ceeac2 (patch)
tree3ffbb3918316368c4400a34393e9febddc6bbad6 /src/gns
parent7c469133a0692a20ea4db3f91a9a12b2a1a448be (diff)
downloadgnunet-395be9a8fb85d172dcbb06826aed8b5b29ceeac2.tar.gz
gnunet-395be9a8fb85d172dcbb06826aed8b5b29ceeac2.zip
- Fix build of ats transport plugin not linking against libgnunetnt
- Add compat memrchr layer for Win32 and macOS
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 68c03edf1..703a0f652 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -624,25 +624,6 @@ timeout_resolution (void *cls)
624} 624}
625 625
626 626
627#if (defined WINDOWS) || (defined DARWIN)
628/* Don't have this on W32, here's a naive implementation
629 * Was somehow removed on OS X ... */
630static void *
631memrchr (const void *s,
632 int c,
633 size_t n)
634{
635 const unsigned char *ucs = s;
636 ssize_t i;
637
638 for (i = n - 1; i >= 0; i--)
639 if (c == (int) ucs[i])
640 return (void *) &ucs[i];
641 return NULL;
642}
643#endif
644
645
646/** 627/**
647 * Get the next, rightmost label from the name that we are trying to resolve, 628 * Get the next, rightmost label from the name that we are trying to resolve,
648 * and update the resolution position accordingly. Labels usually consist 629 * and update the resolution position accordingly. Labels usually consist