/* sockadapt.h
*
- * Authors: Charles Bailey bailey@genetics.upenn.edu
+ * Authors: Charles Bailey bailey@newman.upenn.edu
* David Denholm denholm@conmat.phys.soton.ac.uk
* Last Revised: 4-Mar-1997
*
# include <inet.h>
# include <in.h>
# include <netdb.h>
+#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
+#else
void sethostent(int);
void endhostent(void);
void setnetent(int);
void endprotoent(void);
void setservent(int);
void endservent(void);
+#endif
+# if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 50200000) && !defined(Sock_size_t)
+# define Sock_size_t unsigned int
+# endif
#else
/* Pull in SOCKETSHR's header, and set up structures for
#include <socket.h>
#include <in.h>
#include <inet.h>
-#include <netdb.h>
-/* 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
#define getnetent no_getnetent
#define setnetent no_setnetent
#define endnetent no_endnetent
+
+#include <netdb.h>
#endif
+/* We don't have these two in the system headers. */
+void setnetent(int);
+void endnetent();
+
#include <socketshr.h>
/* 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
# undef getpeername
#endif
#define getpeername my_getpeername
-int my_getpeername _((int, struct sockaddr *, int *));
+int my_getpeername (int, struct sockaddr *, int *);
#endif /* SOCKETSHR stuff */
#endif /* include guard */