From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 183C0385841B for ; Thu, 17 Feb 2022 04:51:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 183C0385841B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 94177342EE6; Thu, 17 Feb 2022 04:51:55 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] newlib: posix: use local includes for local headers Date: Wed, 16 Feb 2022 23:51:52 -0500 Message-Id: <20220217045152.14255-1-vapier@gentoo.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2022 04:51:57 -0000 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). --- 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 8bb04ef0d088..a2f62c978f93 100644 --- a/newlib/libc/posix/collate.c +++ b/newlib/libc/posix/collate.c @@ -28,13 +28,13 @@ #include #include "namespace.h" -#include +#include "rune.h" #include #include #include #include #include -#include +#include "sysexits.h" #include "un-namespace.h" #include "collate.h" diff --git a/newlib/libc/posix/rune.h b/newlib/libc/posix/rune.h index 6966d33750be..888e6fb0423b 100644 --- a/newlib/libc/posix/rune.h +++ b/newlib/libc/posix/rune.h @@ -36,7 +36,7 @@ #ifndef _RUNE_H_ #define _RUNE_H_ -#include +#include "runetype.h" #include #define _PATH_LOCALE "/usr/share/locale" diff --git a/newlib/libc/time/gettzinfo.c b/newlib/libc/time/gettzinfo.c index 54c9bc2f0af7..c28e72f0a858 100644 --- a/newlib/libc/time/gettzinfo.c +++ b/newlib/libc/time/gettzinfo.c @@ -1,5 +1,5 @@ #include -#include +#include "local.h" /* Shared timezone information for libc/time functions. */ static __tzinfo_type tzinfo = {1, 0, -- 2.34.1