From 4bc0dcdff950925e6c774aef062bb066c2a536c2 Mon Sep 17 00:00:00 2001 From: chl Date: Sun, 1 Aug 2010 02:49:07 +0000 Subject: [PATCH] add missing header needed by strcmp() add missing prototype ok stsp@ --- lib/libc/citrus/citrus_ctype.c | 4 +++- 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 #include #include +#include #include #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 -- 2.20.1