*Actually* make rtc work on post-502104 -CURRENT.
This commit is contained in:
@@ -55,9 +55,7 @@ pre-install:
|
||||
|
||||
post-install:
|
||||
${RM} -f ${DEVDIR}/rtc
|
||||
.if ${OSVERSION} < 502104
|
||||
mknod ${DEVDIR}/rtc c ${CDEV_MAJOR} 0
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/
|
||||
${MKDIR} ${PREFIX}/share/examples/rtc
|
||||
${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/rtc/
|
||||
|
||||
@@ -103,9 +103,7 @@ static struct cdevsw rtc_cdevsw = {
|
||||
.d_poll = rtc_poll,
|
||||
.d_read = rtc_read,
|
||||
.d_name = DEVICE_NAME,
|
||||
#if __FreeBSD_version < 502104
|
||||
.d_maj = CDEV_MAJOR,
|
||||
#endif
|
||||
#else
|
||||
/* open */ rtc_open,
|
||||
/* close */ rtc_close,
|
||||
|
||||
Reference in New Issue
Block a user