freebsd-ports/comms/yaps/files/patch-tty.c
Baptiste Daroussin 69da47a9de Prevent collision with getline(3)
While here regen patches
2016-05-11 22:07:52 +00: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"
/*}}}*/