From 7373b4bf797355d67651e0d4ecc59c7cf5a433f3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 28 Mar 2009 16:11:32 +0100 Subject: started to add getaddrinfo and netdb port stub --- include/wolf/port/netdb.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 include/wolf/port/netdb.h (limited to 'include') diff --git a/include/wolf/port/netdb.h b/include/wolf/port/netdb.h new file mode 100644 index 0000000..e247f4c --- /dev/null +++ b/include/wolf/port/netdb.h @@ -0,0 +1,43 @@ +/* + Copyright (C) 2008 Andreas Baumann + + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef WOLF_NETDB_H +#define WOLF_NETDB_H + +/** + * @addtogroup wolf_port Porting + * @{ + */ + +/** + * @file netdb.h + * @brief POSIX getaddrinfo and getnameinfo + * @author Andreas Baumann + */ + +#include "port/sys.h" + +#if !defined HAVE_GETADDRINFO || defined TEST_GETADDRINFO +extern void wolf_port_getaddrinfo( void ); +#endif /* !defined HAVE_GETADDRINFO || defined TEST_GETADDRINFO */ +#if !defined HAVE_GETADDRINFO +#define getaddrinfo( ) wolf_port_getaddrinfo( ) +#endif /* !defined HAVE_GETADDRINFO */ + +/** @} */ /* @addtogroup wolf_port */ + +#endif /* ifndef WOLF_NETDB_H */ -- cgit v1.2.3-54-g00ecf