diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-23 05:13:20 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-23 05:13:20 +0000 |
| commit | 7302771412bf3e432c8600c79726451a41eef3da (patch) | |
| tree | 8e611ba8678ca18efb6ea048192650b54dd4d73b /textproc/scrollkeeper/files/patch-libs_i18n.c | |
| parent | Don't try to run wxconfig if it doesn't exist; simply (diff) | |
Update to 0.3.12.
Diffstat (limited to '')
| -rw-r--r-- | textproc/scrollkeeper/files/patch-libs_i18n.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/scrollkeeper/files/patch-libs_i18n.c b/textproc/scrollkeeper/files/patch-libs_i18n.c new file mode 100644 index 000000000000..b3add5185b26 --- /dev/null +++ b/textproc/scrollkeeper/files/patch-libs_i18n.c @@ -0,0 +1,22 @@ +--- libs/i18n.c.orig Wed Apr 23 00:48:20 2003 ++++ libs/i18n.c Wed Apr 23 00:59:24 2003 +@@ -38,6 +38,19 @@ + * All rights reserved. + */ + ++/* XXX Implement strndup for FreeBSD. */ ++static char * ++strndup(const char *str, int len) { ++ char *ret; ++ ++ if ((str == NULL || len < 0)) return(NULL); ++ ret = (char *)malloc(len + 1); ++ if (ret == NULL) return(NULL); ++ memcpy(ret, str, len); ++ ret[len] = '\0'; ++ return(ret); ++} ++ + /* Support function for compute_locale_variants. */ + static int explode_locale(const char *locale, char **language, + char **territory, char **codeset, char **modifier) |
