From owner-freebsd-hackers Tue Aug 15 11:53: 6 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B147B37C1E0 for ; Tue, 15 Aug 2000 11:52:56 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id MAA27570; Tue, 15 Aug 2000 12:52:51 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA99835; Tue, 15 Aug 2000 12:52:07 -0600 (MDT) Message-Id: <200008151852.MAA99835@harmony.village.org> To: Devin Butterfield Subject: Re: /usr/include/sys/opt_posix.h missing...? Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Tue, 15 Aug 2000 00:46:42 PDT." <3998F562.C5B0B82A@wireless.net> References: <3998F562.C5B0B82A@wireless.net> Date: Tue, 15 Aug 2000 12:52:07 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3998F562.C5B0B82A@wireless.net> Devin Butterfield writes: : In trying to compile driver code which includes unistd.h, the compiler : complains: #include isn't supported for drivers. You should not be including the -I/usr/include on the command line to compile the driver. If you are building a module, you should be using the bsd.kmod.mk framework to build the modules. include instead. You will also need to create an opt_posix.h in your driver's Makefile: KMOD=ifx SRCS=ifx.c device_if.h bus_if.h opt_posix.h .include should be all you need. You may also need to define SYSDIR as well if you don't have it installed in /usr/src/sys. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message