X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/76e72f65da97e7482da0a1eb0b110ca323f21643..0720e8ef5c1d10373cd5faedd35eab2bc4e30fbf:/lib/addr.h diff --git a/lib/addr.h b/lib/addr.h index fb70068..6b3991f 100644 --- a/lib/addr.h +++ b/lib/addr.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004, 2007, 2008 Richard Kettlewell + * Copyright (C) 2004, 2007, 2008, 2013 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,9 @@ #ifndef ADDR_H #define ADDR_H -#include +#if HAVE_NETDB_H +# include +#endif struct stringlist; @@ -47,6 +49,8 @@ struct addrinfo *get_address(const struct stringlist *a, int addrinfocmp(const struct addrinfo *a, const struct addrinfo *b); +int sockaddrcmp(const struct sockaddr *a, + const struct sockaddr *b); int multicast(const struct sockaddr *sa); char *format_sockaddr(const struct sockaddr *sa);