Skip to content

Instantly share code, notes, and snippets.

@glasser
Created October 27, 2011 00:09
Show Gist options
  • Save glasser/1318406 to your computer and use it in GitHub Desktop.
Save glasser/1318406 to your computer and use it in GitHub Desktop.
gettext patch 1
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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment