diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2010-08-01 02:49:08 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2010-08-01 02:49:08 +0000 |
commit | f2ce421d403f6d9ac6e762c81cfd1fffb585df03 (patch) | |
tree | 26e57367c33e5c34ed150d491bec4a555add233f | |
parent | 74bc078c02675f7ee0172bbdd95af03f9e46516a (diff) |
add missing header needed by strcmp()
add missing prototype
ok stsp@
-rw-r--r-- | lib/libc/citrus/citrus_ctype.c | 4 | ||||
-rw-r--r-- | lib/libc/citrus/citrus_ctype.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/citrus/citrus_ctype.c b/lib/libc/citrus/citrus_ctype.c index c869519bff7..32ee6f5c80c 100644 --- a/lib/libc/citrus/citrus_ctype.c +++ b/lib/libc/citrus/citrus_ctype.c @@ -1,4 +1,4 @@ -/* $OpenBSD: citrus_ctype.c,v 1.1 2010/07/27 16:59:03 stsp Exp $ */ +/* $OpenBSD: citrus_ctype.c,v 1.2 2010/08/01 02:49:07 chl Exp $ */ /* $NetBSD: citrus_ctype.c,v 1.5 2008/06/14 16:01:07 tnozaki Exp $ */ /*- @@ -31,6 +31,7 @@ #include <sys/types.h> #include <errno.h> #include <stdlib.h> +#include <string.h> #include <wchar.h> #include "citrus_ctype.h" #include "citrus_none.h" @@ -44,6 +45,7 @@ struct _citrus_ctype_rec _citrus_ctype_utf8 = { &_citrus_utf8_ctype_ops, /* cc_ops */ }; +int _citrus_ctype_open(struct _citrus_ctype_rec **rcc, char const *encname) { if (!strcmp(encname, "NONE")) { diff --git a/lib/libc/citrus/citrus_ctype.h b/lib/libc/citrus/citrus_ctype.h index 5e69b3e8076..df67e09c155 100644 --- a/lib/libc/citrus/citrus_ctype.h +++ b/lib/libc/citrus/citrus_ctype.h @@ -1,4 +1,4 @@ -/* $OpenBSD: citrus_ctype.h,v 1.2 2010/07/27 16:59:03 stsp Exp $ */ +/* $OpenBSD: citrus_ctype.h,v 1.3 2010/08/01 02:49:07 chl Exp $ */ /* $NetBSD: citrus_ctype.h,v 1.2 2003/03/05 20:18:15 tshiozak Exp $ */ /*- @@ -35,4 +35,6 @@ extern struct _citrus_ctype_rec _citrus_ctype_none; +int _citrus_ctype_open(struct _citrus_ctype_rec **, char const *); + #endif |