From patchwork Wed Oct 23 20:46:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 285732 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1E36A2C014B for ; Thu, 24 Oct 2013 07:46:35 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=MuWvETHHByWi+e/pvHFWFhBY39Hbvvj4f25dPJIwJJ8HqYwq8pc9d ipGPg4+CKQxGMqi67ATVQavqurxLbHBtYwT9ZHOz+yWqIJTn9MbiP1D7ZMmgINcF 0MrXS7uAAZ2CHQWI1Hp779ivkDxbovWFw5tehNMTJhsV/XFLh5g92Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=M5IT6e7mVWRF/UtwNQhupYwhi2A=; b=TVapc+R2HgjM1wfjtdcR RIh6bYZ33Yxi/vu2OEW+6Jm3dkJSJJDGzI7ae2BPgPC/tyZWro05Z31C3CkWZWfx f0Q8o5Hf+CCRMzAWeO8BPjziMOX4f0Lch0N9wSn0vrswl/wH5gkOeBc7AtcDOv89 8g8uU9lr2g+RniM04hnWU5o= Received: (qmail 31910 invoked by alias); 23 Oct 2013 20:46:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 31898 invoked by uid 89); 23 Oct 2013 20:46:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Oct 2013 20:46:27 +0000 Received: from trevally.dhcp.nue.suse.com (charybdis-ext.suse.de [195.135.221.2]) by ainaz.pair.com (Postfix) with ESMTPSA id B94403F44E for ; Wed, 23 Oct 2013 16:46:24 -0400 (EDT) Date: Wed, 23 Oct 2013 22:46:23 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: [libiberty] Fix testsuite/test-expandargv.c Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes I'm not sure why this did not trigger on GNU/Linux distributions, on FreeBSD 10 one does need to #include to get to unlink() which is used by this test. With this, the test compiles on my i386-unknown-freebsd10.0 tester; without it, it doesn't. Okay? Gerald 2013-10-22 Gerald Pfeifer * testsuite/test-expandargv.c: Include unistd.h Index: testsuite/test-expandargv.c =================================================================== --- testsuite/test-expandargv.c (revision 203981) +++ testsuite/test-expandargv.c (working copy) @@ -40,6 +40,9 @@ #ifdef HAVE_STRING_H #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0