Add strings.h

Eric Blake
Wed Dec 8 02:39:00 GMT 2010

On 12/07/2010 10:32 AM, Jeff Johnston wrote:
>> I suppose that would work as well, although my change is a one-liner.
>> It's just that I don't have maintainer rights to approve your patch
>> (although it does look okay to me, modulo the one #if line condition);
>> so it's now time for Jeff or Corinna to speak up.
> Ralf's initial patch has just been applied.

Any objections to pushing this?

2010-12-07  Eric Blake  <>

	* libc/include/strings.h: Don't declare removed functions when
	requesting POSIX 2008 compliance.

diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
index 1d5bda6..5ed846f 100644
--- a/newlib/libc/include/strings.h
+++ b/newlib/libc/include/strings.h
@@ -15,7 +15,7 @@


-#ifndef __STRICT_ANSI__
+#if !defined __STRICT_ANSI__ && _POSIX_VERSION < 200809L
  * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std
  * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008

Eric Blake    +1-801-349-2682
Libvirt virtualization library

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Newlib mailing list