From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas 'Dent' Mirlacher" Subject: Re: problem with Date: Tue, 4 Jun 2002 13:44:44 +0200 (MET DST) Sender: linux-c-programming-owner@vger.kernel.org Message-ID: References: Mime-Version: 1.0 Return-path: In-Reply-To: List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: bonganilinux@mweb.co.za Cc: Hossein Mobahi , linux-kernel@vger.kernel.org, linux-c-programming@vger.kernel.org On Tue, 4 Jun 2002 bonganilinux@mweb.co.za wrote: > I think you a trying to include a file from the linux source > which will not work for use-space apps. Try using > #include instead yes, sounds right, since struct semaphore in asm/semaphore will be defined only if __KERNEL__ is defined. tm -- in some way i do, and in some way i don't.