From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 16:44:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 456BB521 for ; Tue, 23 Oct 2012 16:44:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 016CA8FC12 for ; Tue, 23 Oct 2012 16:44:46 +0000 (UTC) Received: from r56.edvax.de (port-92-195-110-131.dynamic.qsc.de [92.195.110.131]) by mx01.qsc.de (Postfix) with ESMTP id 795DA3CC64; Tue, 23 Oct 2012 18:44:45 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q9NGijSj001910; Tue, 23 Oct 2012 18:44:45 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 23 Oct 2012 18:44:45 +0200 From: Polytropon To: s m Subject: Re: ipfw headers Message-Id: <20121023184445.5f6c0e8a.freebsd@edvax.de> In-Reply-To: References: <20121023155211.9785bae4.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 16:44:47 -0000 On Tue, 23 Oct 2012 17:35:45 +0330, s m wrote: > thanks for your quick reply. you know, i want to add studio.h header but > the below error occurs: "no such file or directory". i am sure that > studio.h locates in usr/src/include but that error occured. if i write the > full path of studio.h in ipfw file and then compile it, another error > happened. do you know how i could fix it? thanks The normal inclusion #include should be sufficient. However, if you make your change to ipfw in the /usr/src tree, calling "make" might default to a different path for obtaining headers, i. e. use them from within the src/ tree. The system defaults to several paths, in one of them stdio.h should be defined no matter what build command you use. /usr/include/stdio.h is the default file. /usr/include will be automatically used unless you change a compiler option (-I). /usr/src/include/stdio.h the file used when building stuff from source. This would be the case (if I remember correctly) when you call "make" from /usr/src/sbin/ipfw directly. As ipfw (unaltered) also includes headers "next to" stdio.h, it shouldn't be a problem. You can compare this to other #include preprocessor commands found in ipfw's main.c. Final note: If you did actually use the name "studio.h" - that is a typo. There is no "u" in "standard I/O". :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...