From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C88DF13888F for ; Thu, 15 Oct 2015 22:00:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FCC221C0CC; Thu, 15 Oct 2015 22:00:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7BAD21C0CC for ; Thu, 15 Oct 2015 22:00:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 08123340C0A for ; Thu, 15 Oct 2015 22:00:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 772C2922 for ; Thu, 15 Oct 2015 22:00:46 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1444336626.525da8b994240b63353dfc1e7fe63d67b259ef5a.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/compat.c X-VCS-Directories: libq/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 525da8b994240b63353dfc1e7fe63d67b259ef5a X-VCS-Branch: master Date: Thu, 15 Oct 2015 22:00:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b1549638-1d1e-47e8-ace7-01c50f0dfc0f X-Archives-Hash: 07cd0d2e1d22f9f7365ed640665ecdc9 commit: 525da8b994240b63353dfc1e7fe63d67b259ef5a Author: Mike Frysinger gentoo org> AuthorDate: Thu Oct 8 20:37:06 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Oct 8 20:37:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=525da8b9 compat: do not include sys/dir.h on linux systems This is an old compat header that might not exist on POSIX systems. Since Linux C libs don't generally need it, avoid it there. libq/compat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libq/compat.c b/libq/compat.c index 8def2e9..d5f3278 100644 --- a/libq/compat.c +++ b/libq/compat.c @@ -32,6 +32,8 @@ char* strcasestr(const char *big, const char *little) { #elif defined(__hpux__) || defined(__MINT__) /* must not include both dir.h and dirent.h on hpux11..11 & FreeMiNT */ +#elif defined(__linux__) + /* Linux systems do not need sys/dir.h as they are generally POSIX sane */ #else /* __sun__ */ # include #endif