mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
*Actually* make rtc work on post-502104 -CURRENT.
This commit is contained in:
parent
7d04f9f55e
commit
2d5c22cfa8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103502
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user