Skip to content

gettext fails compiling on Lion XCode 4.2.1

Patch (stolen from macports):

--- 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];

PS:

git describe
1.2.0-pre3-106-g92bea26
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information