portability.patch 567 B

12345678910111213141516171819202122
  1. --- a/lib/mm/memlock.c
  2. +++ b/lib/mm/memlock.c
  3. @@ -159,7 +159,7 @@ static void _touch_memory(void *mem, siz
  4. static void _allocate_memory(void)
  5. {
  6. -#ifndef VALGRIND_POOL
  7. +#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
  8. void *stack_mem;
  9. struct rlimit limit;
  10. int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
  11. --- a/libdaemon/server/daemon-server.c
  12. +++ b/libdaemon/server/daemon-server.c
  13. @@ -18,6 +18,7 @@
  14. #include "daemon-server.h"
  15. #include "daemon-log.h"
  16. +#include <fcntl.h>
  17. #include <dlfcn.h>
  18. #include <errno.h>
  19. #include <pthread.h>