From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 14:38:22 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D192E141 for ; Wed, 11 Mar 2015 14:38:22 +0000 (UTC) Received: from smtp10.hushmail.com (smtp10.hushmail.com [65.39.178.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B357A6A7 for ; Wed, 11 Mar 2015 14:38:22 +0000 (UTC) Received: from smtp10.hushmail.com (localhost [127.0.0.1]) by smtp10.hushmail.com (Postfix) with SMTP id 848BEC02C1 for ; Wed, 11 Mar 2015 14:07:20 +0000 (UTC) Received: from smtp.hushmail.com (w3.hushmail.com [65.39.178.62]) by smtp10.hushmail.com (Postfix) with ESMTP; Wed, 11 Mar 2015 14:07:20 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 2A7F4C0451; Wed, 11 Mar 2015 14:07:20 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 11 Mar 2015 14:07:20 +0000 To: "Polytropon" Subject: Re: Compiling cpulimit: warning: implicit declaration of function 'basename' From: opendaddy@hushmail.com In-Reply-To: <20150311145328.09853966.freebsd@edvax.de> References: <20150311122656.96F2020341@smtp.hushmail.com> <20150311141347.1013d42d.freebsd@edvax.de> <20150311134458.AF7B8C0450@smtp.hushmail.com> <20150311145328.09853966.freebsd@edvax.de> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150311140720.2A7F4C0451@smtp.hushmail.com> Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 14:38:22 -0000 On 11. mars 2015 at 1:44 PM, "Polytropon" wrote: > >FreeBSD has a basename() function, interface in libgen.h, check >if included; also see "man 3 basename" for details. The following >warning is probably a "follow-up error". > Not sure what to look for here, C is way, way beyond my level. https://github.com/opsengine/cpulimit/blob/master/src/process_group.c#L64-L68 Are you able to compile it over at your end? Many thanks! O.D.