From 1de10ca64487df142a028ce8310115c52be75a23 Mon Sep 17 00:00:00 2001 From: millert <> Date: Fri, 15 May 2015 22:29:37 +0000 Subject: Make index/rindex weak aliases of strchr/strrchr since they are not part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@ --- src/lib/libc/string/strrchr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libc/string/strrchr.c') diff --git a/src/lib/libc/string/strrchr.c b/src/lib/libc/string/strrchr.c index b2f17fba28..181f56ea69 100644 --- a/src/lib/libc/string/strrchr.c +++ b/src/lib/libc/string/strrchr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strrchr.c,v 1.1 2014/11/30 19:43:57 deraadt Exp $ */ +/* $OpenBSD: strrchr.c,v 1.2 2015/05/15 22:29:37 millert Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. @@ -30,6 +30,8 @@ #include +__weak_alias(rindex, strrchr); + char * strrchr(const char *p, int ch) { -- cgit v1.2.3-55-g6feb