Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/sys/kern On NetBSD we already have strpb...



details:   https://anonhg.NetBSD.org/src/rev/7d0a8302f130
branches:  trunk
changeset: 346078:7d0a8302f130
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jun 23 05:19:42 2016 +0000

description:
On NetBSD we already have strpbrk() in libkern, so we don't need to
provide another copy in the module.  Removes another 'redefined symbol'
error when loading the module.

Related to PR kern/51265

diffstat:

 external/cddl/osnet/sys/kern/string.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 44f959113913 -r 7d0a8302f130 external/cddl/osnet/sys/kern/string.c
--- a/external/cddl/osnet/sys/kern/string.c     Thu Jun 23 04:41:03 2016 +0000
+++ b/external/cddl/osnet/sys/kern/string.c     Thu Jun 23 05:19:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: string.c,v 1.2 2010/12/14 01:01:40 haad Exp $  */
+/*     $NetBSD: string.c,v 1.3 2016/06/23 05:19:42 pgoyette Exp $      */
 
 /*
  * CDDL HEADER START
@@ -33,6 +33,7 @@
 #define        IS_ALPHA(c)     \
        (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z'))
 
+#ifndef __NetBSD__
 char *
 strpbrk(const char *s, const char *b)
 {
@@ -47,6 +48,7 @@
 
        return (NULL);
 }
+#endif
 
 /*
  * Convert a string into a valid C identifier by replacing invalid



Home | Main Index | Thread Index | Old Index