git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@98099
13f79535-47bb-0310-9956-
ffa450edef68
API_EXPORT(void) ap_note_cleanups_for_socket_ex(pool *p, int fd, int domagic)
{
+#ifdef TPF
+ domagic = 0; /* skip magic (fcntl) for TPF sockets, at least for now */
+#endif
ap_register_cleanup_ex(p, (void *) (long) fd, socket_cleanup,
socket_cleanup,
domagic ? socket_magic_cleanup : NULL);
*/
API_EXPORT(struct hostent *) ap_pgethostbyname(pool *p, const char *hostname)
{
+#ifdef TPF
+ /* get rid of compilation warning on TPF */
+ struct hostent *hp = gethostbyname((char *)hostname);
+#else
struct hostent *hp = gethostbyname(hostname);
+#endif
return (hp == NULL) ? NULL : ap_pduphostent(p, hp);
}