*** ./src/Makefile.in.ORIG Wed Sep 23 16:44:38 2009 --- ./src/Makefile.in Wed Sep 23 16:44:54 2009 *************** *** 173,179 **** $(am__objects_3) nodist_wget_OBJECTS = version.$(OBJEXT) wget_OBJECTS = $(am_wget_OBJECTS) $(nodist_wget_OBJECTS) ! wget_LDADD = $(LDADD) wget_DEPENDENCIES = $(LIBOBJS) ../lib/libgnu.a DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp --- 173,179 ---- $(am__objects_3) nodist_wget_OBJECTS = version.$(OBJEXT) wget_OBJECTS = $(am_wget_OBJECTS) $(nodist_wget_OBJECTS) ! wget_LDADD = $(LDADD) -liconv wget_DEPENDENCIES = $(LIBOBJS) ../lib/libgnu.a DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp *** ./src/gnutls.c.ORIG Sun Sep 18 15:04:04 2011 --- ./src/gnutls.c Sun Sep 18 15:04:21 2011 *************** *** 48,54 **** --- 48,58 ---- #include "ptimer.h" #include "ssl.h" + #ifdef _AIX + #include + #else #include + #endif #ifdef WIN32 # include "w32sock.h" *** ./src/iri.c.ORIG Tue Dec 9 00:04:08 2014 --- ./src/iri.c Tue Dec 9 00:06:29 2014 *************** *** 46,51 **** --- 46,74 ---- /* Note: locale encoding is kept in options struct (opt.locale) */ + #ifdef _AIX + char * + strcasestr (char *haystack, char *needle) + { + char *p, *startn = 0, *np = 0; + + for (p = haystack; *p; p++) { + if (np) { + if (toupper(*p) == toupper(*np)) { + if (!*++np) + return startn; + } else + np = 0; + } else if (toupper(*p) == toupper(*needle)) { + np = needle + 1; + startn = p; + } + } + + return 0; + } + #endif + /* Given a string containing "charset=XXX", return the encoding if found, or NULL otherwise */ char *