From owner-freebsd-hackers Thu Feb 26 19:29:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA07702 for freebsd-hackers-outgoing; Thu, 26 Feb 1998 19:29:45 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from hydrogen.nike.efn.org (d182-89.uoregon.edu [128.223.182.89]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA07696 for ; Thu, 26 Feb 1998 19:29:31 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id TAA22963; Thu, 26 Feb 1998 19:29:30 -0800 (PST) Message-ID: <19980226192930.34778@hydrogen.nike.efn.org> Date: Thu, 26 Feb 1998 19:29:30 -0800 From: John-Mark Gurney To: Doug Ambrisko Cc: hackers@FreeBSD.ORG Subject: Re: a chicken-egg problem with bootp and nfs_mountroot References: <19980226183143.51935@hydrogen.nike.efn.org> <199802270249.SAA20060@crab.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199802270249.SAA20060@crab.whistle.com>; from Doug Ambrisko on Thu, Feb 26, 1998 at 06:49:41PM -0800 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Ambrisko scribbled this message on Feb 26: > John-Mark Gurney writes: > | Doug Ambrisko scribbled this message on Feb 26: > | > BTW anyone know how to pass a string in via a #define in config? > | > | in your config file: > | options "DEFINENAME=string value" > | > | should do it... > > > Don't think so for example: > options "BOOTP_WIRED_TO=fxp0" > Then in a c-snippet: > strcmp(string,BOOTP_WIRED_TO) > Will change into > strcmp(string,fxp0) > which will fail to compile want > strcmp(string,"fxp0") > so for now I stick in a > #define BOOTP_WIRED_TO "fxp0" > in the code. > > I need the quotes passed through or made to happen someway. hmm... try: options "BOOTP_WIRED_TO=#fxp0" this is gcc specific as far as preprocessors go IIRC... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking P.O. Box 5693, 97405 Live in Peace, destroy Micro$oft, support free software, run FreeBSD Don't trust anyone you don't have the source for To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message