Skip to content

Instantly share code, notes, and snippets.

@tochiz
Created July 24, 2011 04:37
Show Gist options
  • Save tochiz/1102253 to your computer and use it in GitHub Desktop.
Save tochiz/1102253 to your computer and use it in GitHub Desktop.
gentoo prefix coreutils patch for mac os x lion (for testing)
diff -ruN coreutils-6.11.orig/coreutils-6.11/lib/stpncpy.c coreutils-6.11/coreutils-6.11/lib/stpncpy.c
--- coreutils-6.11.orig/coreutils-6.11/lib/stpncpy.c 2011-07-24 13:28:40.000000000 +0900
+++ coreutils-6.11/coreutils-6.11/lib/stpncpy.c 2011-07-24 14:32:40.000000000 +0900
@@ -23,6 +23,9 @@
/* Specification. */
#include <string.h>
+#undef __stpncpy
+#undef stpncpy
+
#ifndef weak_alias
# define __stpncpy stpncpy
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment