X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/43866e378188c25dd1e2208016ab3cbeb086ae6c..4a2492630c73add3c3aa8a805ba4ff343d4a58ea:/bsd/dev/ppc/conf.c?ds=inline diff --git a/bsd/dev/ppc/conf.c b/bsd/dev/ppc/conf.c index ba13fc3ee..1b51cac58 100644 --- a/bsd/dev/ppc/conf.c +++ b/bsd/dev/ppc/conf.c @@ -103,6 +103,9 @@ extern int mmread(),mmwrite(); #define mmselect seltrue #if 1 +#ifdef NPTY +#undef NPTY +#endif /* NPTY */ #define NPTY 32 #else /* 1 */ #include @@ -147,7 +150,7 @@ struct cdevsw cdevsw[] = { consopen, consclose, consread, conswrite, /* 0*/ consioctl, nulldev, nulldev, 0, consselect, - eno_mmap, eno_strat, cons_getc, cons_putc, D_TTY + eno_mmap, eno_strat, (getc_fcn_t *)cons_getc, (putc_fcn_t *)cons_putc, D_TTY }, NO_CDEVICE, /* 1*/ { @@ -157,7 +160,7 @@ struct cdevsw cdevsw[] = }, { nulldev, nulldev, mmread, mmwrite, /* 3*/ - eno_ioctl, nulldev, nulldev, 0, mmselect, + eno_ioctl, nulldev, nulldev, 0, (select_fcn_t *)mmselect, eno_mmap, eno_strat, eno_getc, eno_putc, 0 }, {