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 9136E138A1A for ; Mon, 16 Feb 2015 11:47:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20826E096D; Mon, 16 Feb 2015 11:47:40 +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 C93ADE096D for ; Mon, 16 Feb 2015 11:47:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D450534070A for ; Mon, 16 Feb 2015 11:47:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B53B11E03 for ; Mon, 16 Feb 2015 11:47:32 +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: <1424087137.b990a48b85b71f94323120e50f2ba97958351a97.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: b990a48b85b71f94323120e50f2ba97958351a97 X-VCS-Branch: master Date: Mon, 16 Feb 2015 11:47:32 +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: fbd17ad5-3551-47dd-aa0f-fac60517aa83 X-Archives-Hash: 1800a057bf96ef5f3f5f0376ca5e6ebb commit: b990a48b85b71f94323120e50f2ba97958351a97 Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 16 11:45:37 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 16 11:45:37 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=b990a48b compat: define a S_BLKSIZE fallback value This define isn't required by POSIX, so some systems omit it. Define a fallback value of 512 since that's what everyone generally uses. URL: https://bugs.gentoo.org/529354 --- libq/compat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libq/compat.c b/libq/compat.c index 928386b..8def2e9 100644 --- a/libq/compat.c +++ b/libq/compat.c @@ -51,3 +51,8 @@ char* strcasestr(const char *big, const char *little) { #ifdef __hpux # define S_BLKSIZE st.st_blksize #endif + +/* Everyone else */ +#ifndef S_BLKSIZE +# define S_BLKSIZE 512 +#endif