summaryrefslogtreecommitdiff
path: root/mac/stpncpy.patch
blob: e18af95cee4511f7e1255dc789f2b1990b4a56ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -Naurp gettext-0.18.1.1.orig/gettext-tools/configure gettext-0.18.1.1/gettext-tools/configure
--- gettext-tools/configure	2010-06-06 13:12:20.000000000 -0700
+++ gettext-tools/configure	2010-08-13 23:24:09.000000000 -0700
@@ -40606,7 +40606,9 @@ else
 #include <stdlib.h>
 #include <string.h> /* for strcpy */
 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
+#ifndef stpncpy
 extern char *stpncpy (char *dest, const char *src, size_t n);
+#endif
 int main () {
   const char *src = "Hello";
   char dest[10];