Skip to content

Instantly share code, notes, and snippets.

@indeyets
Created March 9, 2011 10:44
Show Gist options
  • Save indeyets/862013 to your computer and use it in GitHub Desktop.
Save indeyets/862013 to your computer and use it in GitHub Desktop.
diff -Naurp gettext-0.18.1.1.orig/gettext-tools/configure gettext-0.18.1.1/gettext-tools/configure
--- 1/gettext-tools/configure 2010-06-06 13:12:20.000000000 -0700
+++ 2/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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment