opnsense-ports/comms/yaps/files/patch-tty.c
Franco Fichtner ee1340af02 */*: sync with upstream
Taken from: FreeBSD
2016-05-16 11:27:06 +02:00

13 lines
379 B
C

--- tty.c.orig 1997-06-07 14:32:21 UTC
+++ tty.c
@@ -22,8 +22,10 @@
# elif HAVE_SYS_MKDEV_H
# include <sys/mkdev.h>
# else /* ! HAVE_SYS_SYSMACROS_H && ! HAVE_SYS_MKDEV_H */
+# ifndef major
# define major(xx) (((xx) >> 8) & 0xff)
# define minor(xx) ((xx) & 0xff)
+# endif /* major */
# endif /* HAVE_SYS_SYSMACROS_H || HAVE_SYS_MKDEV_H */
# include "pager.h"
/*}}}*/