Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 14 Apr 2001 07:48:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 14 Apr 2001 07:48:27 -0400 Received: from pc57-cam4.cable.ntl.com ([62.253.135.57]:16770 "EHLO kings-cross.london.uk.eu.org") by vger.kernel.org with ESMTP id ; Sat, 14 Apr 2001 07:48:24 -0400 X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev To: vivid_liou@dlink.com.tw cc: linux-kernel@vger.kernel.org Subject: Re: why can't include /sys/types and /linux/fs.h in the same file In-Reply-To: Message from vivid_liou@dlink.com.tw of "Sat, 14 Apr 2001 19:39:16 +0800." <48256A2E.003F9F29.00@dlink.com.tw> In-Reply-To: <48256A2E.003F9F29.00@dlink.com.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 14 Apr 2001 12:47:41 +0100 From: Philip Blundell Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >#include >#include >int main () >{ >; // contains no C programs, >} >and give the command " cc -D__KERNEL__ -I/usr/src/linux/include to compiler >the program . You can't mix environments. Either you're building part of the kernel, in which case you need to use -D__KERNEL__ and headers, or you're building an application, in which case you need to use the headers from libc. p. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/