Skip to content

Instantly share code, notes, and snippets.

@biow0lf
Created March 11, 2011 21:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biow0lf/866636 to your computer and use it in GitHub Desktop.
Save biow0lf/866636 to your computer and use it in GitHub Desktop.
patch for gettext compile under Mac OSX 10.7 (Lion) (doesn't tested well)
diff -ur gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c
--- gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c 2007-10-07 23:29:35.000000000 +0300
+++ gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c 2011-03-11 23:34:40.000000000 +0200
@@ -24,7 +24,7 @@
#include <string.h>
#ifndef weak_alias
-# define __stpncpy stpncpy
+//# define __stpncpy stpncpy
#endif
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment