From patchwork Sun Jul 26 12:20:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 6866191 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 87F46C05AC for ; Sun, 26 Jul 2015 12:21:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B33592066F for ; Sun, 26 Jul 2015 12:21:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2E61E207A1 for ; Sun, 26 Jul 2015 12:21:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751431AbbGZMVI (ORCPT ); Sun, 26 Jul 2015 08:21:08 -0400 Received: from imap.thunk.org ([74.207.234.97]:37878 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbbGZMVH (ORCPT ); Sun, 26 Jul 2015 08:21:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=1fToWGghHoSKUgu0rfxUnHvxxUXN1QR6QlWGUz12lnc=; b=EY5+GMoO5kWONp3cXqJKE1/9yx+FmCzS0xRc1YXH4W2J9sG4nlRHwQ7iGycXNbK4jGPc4gIZ9fLFu4JfT8m3AjK9xA4U/fFGj1318UxYixPQfYAEnQh85g2OjLNGnVo+YbhLtzvYk4EhHOMws6s52oCS/3HiiJUM+kf432zeaHs=; Received: from root (helo=closure.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.84) (envelope-from ) id 1ZJKvR-00039q-0U; Sun, 26 Jul 2015 12:21:05 +0000 Received: by closure.thunk.org (Postfix, from userid 15806) id 4EEFE820486; Sun, 26 Jul 2015 08:21:04 -0400 (EDT) From: Theodore Ts'o To: xfs@oss.sgi.com Cc: Theodore Ts'o , fstests@vger.kernel.org Subject: [PATCH 2/6] xfsprogs: pull in libgen.h to get prototype for basename() Date: Sun, 26 Jul 2015 08:20:51 -0400 Message-Id: <1437913255-7524-3-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1437913255-7524-1-git-send-email-tytso@mit.edu> References: <1437913255-7524-1-git-send-email-tytso@mit.edu> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The function prototype for basename() is in , per Posix. Without the the function prototype, the build will throw errors due to the missing prototype. On glibc, using libgen.h will force the use of Poxis's basename(), instead of glibc's basename() with GNU extensions. However, xfsprogs doesn't depend on any of the GNU extensions, so this is fine. Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig --- include/platform_defs.h.in | 1 + 1 file changed, 1 insertion(+) diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index 3e059af..bfab7cc 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -35,6 +35,7 @@ #include #include #include +#include #undef HAVE___U32 #ifdef HAVE___U32