wkf/wkf-1.3.11-func-declaration.patch

22 lines
662 B
Diff

--- wkf-1.3.11/functions.h.debug 2005-04-05 17:26:56.000000000 +0900
+++ wkf-1.3.11/functions.h 2008-04-03 23:43:07.000000000 +0900
@@ -56,4 +56,7 @@
extern void setOutputStringBuffer(String, unsigned int);
extern conv_t convertKanjiCode(kcode_t, kcode_t);
+/* strlcpy.c */
+extern size_t strlcpy(char *dst, const char *src, size_t siz);
+
#endif /* _FUNCTIONS_H */
--- wkf-1.3.11/wkf.c.debug 2007-07-06 01:35:21.000000000 +0900
+++ wkf-1.3.11/wkf.c 2008-04-03 23:47:06.000000000 +0900
@@ -44,6 +44,9 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
+/* For asprintf */
+#define _GNU_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32