X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=vms%2Fsockadapt.h;h=3e5daf376591457e3639b0402c5f20328519e6e2;hb=1a159553554948091ed2e3b1cf5953ca46e63bc5;hp=e104ca7f3c831d97429e930a6fbc526a1bf0a6d6;hpb=9607fc9c489d4095e3baa795d7ead7acba96137d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/vms/sockadapt.h b/vms/sockadapt.h index e104ca7..3e5daf3 100644 --- a/vms/sockadapt.h +++ b/vms/sockadapt.h @@ -24,6 +24,8 @@ # include # include # include +#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000) +#else void sethostent(int); void endhostent(void); void setnetent(int); @@ -32,6 +34,10 @@ void endprotoent(void); void setservent(int); void endservent(void); +#endif +# if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 50200000) +# define Sock_size_t unsigned int +# endif #else /* Pull in SOCKETSHR's header, and set up structures for @@ -139,10 +145,6 @@ void endnetent(); #include #include #include -#include -/* However, we don't have these two in the system headers. */ -void setnetent(int); -void endnetent(); /* SocketShr doesn't support these routines, but the DECC RTL contains * stubs with these names, designed to be used with the UCX socket @@ -153,8 +155,14 @@ void endnetent(); #define getnetent no_getnetent #define setnetent no_setnetent #define endnetent no_endnetent + +#include #endif +/* We don't have these two in the system headers. */ +void setnetent(int); +void endnetent(); + #include /* socketshr.h from SocketShr 0.9D doesn't alias fileno; its comments say * that the CRTL version works OK. This isn't the case, at least with