X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstpncpy.m4;h=ec88b54427fc4ed7e8bbb6d645c62a3c2223111c;hb=8ccc091547bec1dbdb15dd7d2741cf988ce1f3d8;hp=1ab377c986419fb4355ed91077d74271ed0b60b6;hpb=cd3bee968885a85671cad267e142aad74076b5e2;p=gnulib.git diff --git a/m4/stpncpy.m4 b/m4/stpncpy.m4 index 1ab377c98..ec88b5442 100644 --- a/m4/stpncpy.m4 +++ b/m4/stpncpy.m4 @@ -1,5 +1,5 @@ -# stpncpy.m4 serial 3 -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. +# stpncpy.m4 serial 4 +dnl Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -22,6 +22,8 @@ AC_DEFUN([gl_FUNC_STPNCPY], AC_CACHE_CHECK([for working stpncpy], gl_cv_func_stpncpy, [ AC_TRY_RUN([ #include +#include /* for strcpy */ +/* The stpncpy prototype is missing in on AIX 4. */ extern char *stpncpy (char *dest, const char *src, size_t n); int main () { const char *src = "Hello";