strnlen function prototype not included correctly in includes.h change #ifndef HAVE_STRNLEN to #if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN) ENV AIX 4.3 gcc 3.4.3
Peter, Is strnlen not defined in /usr/include/string.h for 4.3? That's the only time this should matter. Are you receiveing a specific build error for this? Bill
Yes, a incompatible declaration for strnlen error on compile of util_str.c, line 1665 as below and #if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN) /** Some platforms don't have strnlen **/ /*line 1665 */ size_t strnlen(const char *s, size_t n) { size_t i; for (i=0; i<n && s[i] != '\0'; i++) /* noop */ ; return i; } #endif And line 598 if (!src) { *dest = 0; return dest; } /* line 598 */ len = strnlen(src, maxlength+1); change to includes.h fixed (In reply to comment #0) > strnlen function prototype not included correctly > > in includes.h > > change #ifndef HAVE_STRNLEN > > to #if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN) > > ENV > AIX 4.3 > gcc 3.4.3 >
I don't see a problem with this in current versions