From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 57B4B385F017; Sat, 19 Feb 2022 02:28:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57B4B385F017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: posix: use local includes for local headers X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: ac9f8c46b1bc37df1a4209d9bff6e911f7d6b281 X-Git-Newrev: 56c65fb8d9c470c3a0a2ea43d353f3e961d0161e Message-Id: <20220219022859.57B4B385F017@sourceware.org> Date: Sat, 19 Feb 2022 02:28:59 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2022 02:28:59 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D56c65fb8d9c= 470c3a0a2ea43d353f3e961d0161e commit 56c65fb8d9c470c3a0a2ea43d353f3e961d0161e Author: Mike Frysinger Date: Sun Feb 13 05:43:42 2022 -0500 newlib: posix: use local includes for local headers =20 These headers aren't installed, so use "" includes instead of <> so we don't search system header paths. This matches the style used elsewhere in the tree for these local headers, and makes it work w/out explicit -I flags (as needed with non-recursive make). Diff: --- newlib/libc/posix/collate.c | 4 ++-- newlib/libc/posix/rune.h | 2 +- newlib/libc/time/gettzinfo.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/newlib/libc/posix/collate.c b/newlib/libc/posix/collate.c index 8bb04ef0d..a2f62c978 100644 --- a/newlib/libc/posix/collate.c +++ b/newlib/libc/posix/collate.c @@ -28,13 +28,13 @@ #include =20 #include "namespace.h" -#include +#include "rune.h" #include #include #include #include #include -#include +#include "sysexits.h" #include "un-namespace.h" =20 #include "collate.h" diff --git a/newlib/libc/posix/rune.h b/newlib/libc/posix/rune.h index 6966d3375..888e6fb04 100644 --- a/newlib/libc/posix/rune.h +++ b/newlib/libc/posix/rune.h @@ -36,7 +36,7 @@ #ifndef _RUNE_H_ #define _RUNE_H_ =20 -#include +#include "runetype.h" #include =20 #define _PATH_LOCALE "/usr/share/locale" diff --git a/newlib/libc/time/gettzinfo.c b/newlib/libc/time/gettzinfo.c index 54c9bc2f0..c28e72f0a 100644 --- a/newlib/libc/time/gettzinfo.c +++ b/newlib/libc/time/gettzinfo.c @@ -1,5 +1,5 @@ #include -#include +#include "local.h" =20 /* Shared timezone information for libc/time functions. */ static __tzinfo_type tzinfo =3D {1, 0,