aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gsocket.h
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2009-04-20 10:45:28 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-20 12:45:28 +0200
commit2907036db71b583f6a7c627e1e1753e85c779312 (patch)
treeabccfec98396bda557b30cfec0ba8b9cbd863c15 /gcc/ada/gsocket.h
parentd50633515b970d72c074e5face5eecf2dd3fa74a (diff)
downloadgcc-2907036db71b583f6a7c627e1e1753e85c779312.zip
gcc-2907036db71b583f6a7c627e1e1753e85c779312.tar.gz
gcc-2907036db71b583f6a7c627e1e1753e85c779312.tar.bz2
socket.c, [...] (__gnat_inet_pton): Needs to be enabled for HP-UX as well...
2009-04-20 Thomas Quinot <quinot@adacore.com> * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads, g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well, since HP-UX supports neither inet_aton nor inet_pton (altough the latter is part of the Single UNIX Specification!). So reorganize code, and share C implementation based on inet_addr(3) with VMS (instead of having a VMS specific Ada implementation in g-socthi-vms.adb). From-SVN: r146396
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r--gcc/ada/gsocket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h
index 7e88eea..16aa2ba 100644
--- a/gcc/ada/gsocket.h
+++ b/gcc/ada/gsocket.h
@@ -230,4 +230,8 @@
# define Has_Sockaddr_Len 0
#endif
+#if !(defined (__vxworks) || defined (_WIN32) || defined (__hpux__) || defined (VMS))
+# define HAVE_INET_PTON
+#endif
+
#endif /* defined(__nucleus__) */