} else { /* Alphanumeric node name: */
printf("HTTCP: Calling gethostbyname2(\"%s\",AF_INET)\n", host);
phost=gethostbyname2(host,AF_INET); /* See netdb.h */
- printf("HTTCP: gethostbyname() returned %d\n", phost);
- printf("HTTCP: h_errno %d\n",h_errno);
if (!phost) {
printf(
- "HTTPAccess: Can't find internet node name `%s'.\n",host);
+ "HTTPAccess: Can't find internet node name `%s', h_errno: %d.\n",host,h_errno);
return -1; /* Fail? */
}
memcpy(&sin->sin_addr, phost->h_addr, phost->h_length);
--- /dev/null
+This is erwise as fetched from: ftp://ftp.funet.fi/pub/networking/services/www/erwisE/
+
+Patched by Toni Nikkanen <toni@tuug.fi> to compile and run on Nokia N810/800 etc. Maemo
+devices, using Diablo 4.1.2 SDK.
+Included are the required lesstif libraries under lesstif-libs/
+
LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
+ LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
LDCOMBINEFLAGS = -X -r
DEPENDFLAGS =