Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 1998 19:29:30 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Doug Ambrisko <ambrisko@whistle.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: a chicken-egg problem with bootp and nfs_mountroot
Message-ID:  <19980226192930.34778@hydrogen.nike.efn.org>
In-Reply-To: <199802270249.SAA20060@crab.whistle.com>; from Doug Ambrisko on Thu, Feb 26, 1998 at 06:49:41PM -0800
References:  <19980226183143.51935@hydrogen.nike.efn.org> <199802270249.SAA20060@crab.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980226192930.34778>