aboutsummaryrefslogtreecommitdiff
path: root/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.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-arpa-inet.h
parent074f004e7be95f94905b7f7e9a1d2145f99f3948 (diff)
Notes
Diffstat (limited to 'devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.h')
-rw-r--r--devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.h b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.h
new file mode 100644
index 000000000000..e8fad4b3547b
--- /dev/null
+++ b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-arpa-inet.h
@@ -0,0 +1,29 @@
+--- newlib/libc/sys/psp/arpa/inet.h.orig 1970-01-01 02:00:00.000000000 +0200
++++ newlib/libc/sys/psp/arpa/inet.h 2007-06-01 12:22:26.000000000 +0300
+@@ -0,0 +1,26 @@
++/* arpa/inet.h - Functions for converting IP addresses between strings and numbers */
++
++#ifndef _ARPA_INET_H_
++#define _ARPA_INET_H_
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <netinet/in.h>
++
++in_addr_t sceNetInetInetAddr(const char *ip);
++int sceNetInetInetAton(const char *ip, struct in_addr *in);
++const char* sceNetInetInetNtop(int af, const void *src, char *dst, socklen_t cnt);
++int sceNetInetInetPton(int af, const char *src, void *dst);
++
++char *inet_ntoa(struct in_addr in);
++#define inet_addr sceNetInetInetAddr
++#define inet_aton sceNetInetInetAton
++#define inet_ntop sceNetInetInetNtop
++#define inet_pton sceNetInetInetPton
++
++#ifdef __cplusplus
++}
++#endif
++#endif /* _ARPA_INET_H_ */