- size_t hostlen, char *serv, size_t servlen, int flags);
+ size_t hostlen, char *serv, size_t servlen, int flags);
+#endif
+
+#ifndef HAVE_GETTIMEOFDAY
+extern int gettimeofday(struct timeval *, void *);
+#endif
+
+#ifndef HAVE_RANDOM
+extern long int random(void);