Commit 25f300f7 authored by Michael Tremer's avatar Michael Tremer

Fix compilation on MacOS X

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 9294469c
......@@ -22,6 +22,7 @@
#include <string.h>
#include <libloc/address.h>
#include <libloc/compat.h>
#define LOC_ADDRESS_BUFFERS 6
#define LOC_ADDRESS_BUFFER_LENGTH INET6_ADDRSTRLEN
......
......@@ -18,6 +18,7 @@
#include <libloc/as.h>
#include <libloc/as-list.h>
#include <libloc/compat.h>
#include <libloc/private.h>
struct loc_as_list {
......
......@@ -17,6 +17,7 @@
#include <errno.h>
#include <stdlib.h>
#include <libloc/compat.h>
#include <libloc/country.h>
#include <libloc/country-list.h>
#include <libloc/private.h>
......
......@@ -22,6 +22,8 @@
#include <errno.h>
#include <netinet/in.h>
#include <libloc/compat.h>
/*
All of these functions are private and for internal use only
*/
......
......@@ -35,6 +35,10 @@
# define s6_addr32 __u6_addr.__u6_addr32
#endif
#ifndef reallocarray
# define reallocarray(ptr, nmemb, size) realloc(ptr, nmemb * size)
#endif
#endif
#endif
......@@ -19,6 +19,7 @@
#include <errno.h>
#include <limits.h>
#include <libloc/compat.h>
#include <libloc/libloc.h>
#include <libloc/network.h>
#include <libloc/network-list.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment