Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 82511 invoked from network); 18 Aug 2006 17:13:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 17:13:47 -0000 Received: (qmail 90340 invoked by uid 500); 18 Aug 2006 17:13:47 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 90326 invoked by uid 500); 18 Aug 2006 17:13:46 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 90315 invoked by uid 99); 18 Aug 2006 17:13:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 10:13:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 10:13:46 -0700 Received: from [10.70.3.48] ([10.70.3.48]) by moroha.quovadx.com (8.13.6/8.13.4) with ESMTP id k7IHCtS3003460 for ; Fri, 18 Aug 2006 17:12:56 GMT Message-ID: <44E5F534.1000904@roguewave.com> Date: Fri, 18 Aug 2006 11:13:24 -0600 From: Andrew Black User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060720 SeaMonkey/1.0.3 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: [patch] exec utility bugfix Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Greetings all. Below is a quick patch and changelog to fix a compile failure in the exec utility with the compaq compiler. --Andrew Black Log: * cmdopt.cpp [!_WIN32 && !_WIN64] (rw_sleep): declare function 'extern "C"' if __cplusplus is defined. Index: cmdopt.cpp =================================================================== --- cmdopt.cpp (revision 432634) +++ cmdopt.cpp (working copy) @@ -106,6 +106,9 @@ sleep (seconds); } +#ifdef __cplusplus +extern "C" { +#endif static int rw_signal (int signo, void (*func)(int)) { @@ -114,6 +117,9 @@ act.sa_handler = func; return 0 > sigaction (signo, &act, 0); } +#ifdef __cplusplus +} +#endif #else static void rw_sleep (int seconds)