summaryrefslogtreecommitdiff
path: root/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2009-08-21 00:54:33 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2009-08-21 00:54:33 +0000
commit8cbd3957fb9309b77590faad70c31ada2caee71f (patch)
tree6e6dc53459a6b9a79b032994edb9301bd33d61c2 /devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h
parentUpdate to the 20090818 snapshot of GCC 4.4.2. (diff)
The PlayStation Portable Toolchain is a collection of tools and utilities
for homebrew PSP development. WWW: http://www.ps2dev.org PR: ports/132323, ports/132324, ports/132325, ports/132326 ports/132327, ports/132328, ports/132329, ports/132330 Submitted by: Tassilo Philipp <tphilipp@potion-studios.com>
Notes
Notes: svn path=/head/; revision=240002
Diffstat (limited to 'devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h')
-rw-r--r--devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h
new file mode 100644
index 000000000000..412165933f2f
--- /dev/null
+++ b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-include-netdb.h
@@ -0,0 +1,39 @@
+--- newlib/libc/sys/psp/include/netdb.h.orig 1970-01-01 02:00:00.000000000 +0200
++++ newlib/libc/sys/psp/include/netdb.h 2007-06-01 12:22:26.000000000 +0300
+@@ -0,0 +1,36 @@
++/* Simple gethostbyname and gethostbyaddr replacements, note not thread safe */
++#ifndef __NETDB_H__
++#define __NETDB_H__
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#define NETDB_INTERNAL -1 /* see errno */
++#define NETDB_SUCCESS 0 /* no problem */
++#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
++#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
++#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
++#define NO_DATA 4 /* Valid name, no data record of requested type */
++#define NO_ADDRESS NO_DATA /* no address, look for MX record */
++
++extern int h_errno;
++
++struct hostent
++{
++ char *h_name;
++ char **h_aliases;
++ int h_addrtype;
++ int h_length;
++ char **h_addr_list;
++ char *h_addr;
++};
++
++struct hostent *gethostbyaddr(const void *addr, int len, int type);
++struct hostent *gethostbyname(const char *name);
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif