#include "mx.h"
#endif /* HAVE_GETHOSTBYNAME */
+#ifdef SUNOS
+#include <memory.h>
+#endif
+
#ifdef KERBEROS_V4
#include <krb.h>
#include <des.h>
set_timeout(ctl->server.timeout);
/* leave extra room for reply_hack to play with */
- line = realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1);
+ line = (char *) realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1);
strcat(line, buf);
if (line[0] == '\r' && line[1] == '\n')
break;
int newlen;
newlen = oldlen + strlen(line);
- headers = realloc(headers, newlen + 1);
+ headers = (char *) realloc(headers, newlen + 1);
if (headers == NULL)
return(PS_IOERR);
strcpy(headers + oldlen, line);