mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 21:52:45 +00:00
Only build PnP parts if the platform supports PnP.
This commit is contained in:
parent
b8c2df609a
commit
4eedebf31f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65677
@ -11,6 +11,9 @@ CFLAGS+= -mno-fp-regs
|
|||||||
CFLAGS+= -mpreferred-stack-boundary=2
|
CFLAGS+= -mpreferred-stack-boundary=2
|
||||||
.endif
|
.endif
|
||||||
.ifmake testmain
|
.ifmake testmain
|
||||||
|
.if HAVE_PNP
|
||||||
|
CFLAGS+= -DHAVE_PNP
|
||||||
|
.endif
|
||||||
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
||||||
SRCS+= testmain.c
|
SRCS+= testmain.c
|
||||||
PROG= testmain
|
PROG= testmain
|
||||||
|
@ -242,6 +242,8 @@ ficlFindfile(FICL_VM *pVM)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_PNP
|
||||||
|
|
||||||
void
|
void
|
||||||
ficlPnpdevices(FICL_VM *pVM)
|
ficlPnpdevices(FICL_VM *pVM)
|
||||||
{
|
{
|
||||||
@ -272,6 +274,8 @@ ficlPnphandlers(FICL_VM *pVM)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
ficlCcall(FICL_VM *pVM)
|
ficlCcall(FICL_VM *pVM)
|
||||||
{
|
{
|
||||||
|
@ -4833,8 +4833,10 @@ void ficlCompileCore(FICL_DICT *dp)
|
|||||||
dictAppendWord(dp, "copyin", ficlCopyin, FW_DEFAULT);
|
dictAppendWord(dp, "copyin", ficlCopyin, FW_DEFAULT);
|
||||||
dictAppendWord(dp, "copyout", ficlCopyout, FW_DEFAULT);
|
dictAppendWord(dp, "copyout", ficlCopyout, FW_DEFAULT);
|
||||||
dictAppendWord(dp, "findfile", ficlFindfile, FW_DEFAULT);
|
dictAppendWord(dp, "findfile", ficlFindfile, FW_DEFAULT);
|
||||||
|
#ifdef HAVE_PNP
|
||||||
dictAppendWord(dp, "pnpdevices",ficlPnpdevices, FW_DEFAULT);
|
dictAppendWord(dp, "pnpdevices",ficlPnpdevices, FW_DEFAULT);
|
||||||
dictAppendWord(dp, "pnphandlers",ficlPnphandlers, FW_DEFAULT);
|
dictAppendWord(dp, "pnphandlers",ficlPnphandlers, FW_DEFAULT);
|
||||||
|
#endif
|
||||||
dictAppendWord(dp, "ccall", ficlCcall, FW_DEFAULT);
|
dictAppendWord(dp, "ccall", ficlCcall, FW_DEFAULT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user