diff options
Diffstat (limited to 'include/wolf/port/netdb.h')
-rw-r--r-- | include/wolf/port/netdb.h | 43 |
1 files changed, 43 insertions, 0 deletions
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 <abaumann@yahoo.com> + + 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 <http://www.gnu.org/licenses/>. +*/ + +#ifndef WOLF_NETDB_H +#define WOLF_NETDB_H + +/** + * @addtogroup wolf_port Porting + * @{ + */ + +/** + * @file netdb.h + * @brief POSIX getaddrinfo and getnameinfo + * @author Andreas Baumann <abaumann@yahoo.com> + */ + +#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 */ |