summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-28 16:11:32 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-28 16:11:32 +0100
commit7373b4bf797355d67651e0d4ecc59c7cf5a433f3 (patch)
tree03761a446c269782f948295402b7addfbb4f54d9 /include
parent472856b00dd596cba47c5026317a8c88226b74c8 (diff)
downloadwolfbones-7373b4bf797355d67651e0d4ecc59c7cf5a433f3.tar.gz
wolfbones-7373b4bf797355d67651e0d4ecc59c7cf5a433f3.tar.bz2
started to add getaddrinfo and netdb port stub
Diffstat (limited to 'include')
-rw-r--r--include/wolf/port/netdb.h43
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 */