Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/compat/locale/compat_setlocale32.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/compat/locale/compat_setlocale32.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- src/lib/libc/compat/locale/compat_setlocale32.c 2010/06/07 13:52:30 1.1 +++ src/lib/libc/compat/locale/compat_setlocale32.c 2013/03/06 11:29:01 1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_setlocale32.c,v 1.1 2010/06/07 13:52:30 tnozaki Exp $ */ +/* $NetBSD: compat_setlocale32.c,v 1.2 2013/03/06 11:29:01 yamt Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -30,7 +30,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: compat_setlocale32.c,v 1.1 2010/06/07 13:52:30 tnozaki Exp $"); +__RCSID("$NetBSD: compat_setlocale32.c,v 1.2 2013/03/06 11:29:01 yamt Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -42,6 +42,14 @@ __warn_references(__setlocale_mb_len_max "warning: reference to compatibility __setlocale_mb_len_max_32();" "include for correct reference") +/* + * MB_LEN_MAX used to be a MD macro. it was 32 for most ports but 6 for hppa. + * hppa uses arch/hppa/locale/compat_setlocale32.c instead of this file. + */ +#if defined(__hppa__) +#error using wrong variant of compat_setlocale32.c +#endif /* defined(__hppa__) */ + char * __setlocale_mb_len_max_32(int category, const char *locale) {