ports/editors/emacs-devel/files/patch-src_s_freebsd.h
Ashish SHUKLA efb10588db - Update to bzr revision 106087
- Fix detection of 'make' program in use in configure script[1]
- Use openpty(3) instead of deprecated pty(4) interface[2]
- Add patch to interrupt `debug-on-quit' during loops[3]
- Track ncurses dependency[4]

PR:		ports/160986[1], ports/161181[2], ports/161220[3], ports/161497[4]
Submitted by:	h h <aakusta@gmail.com>[1], Nali Toja <nalitoja@gmail.com>[2][3][4]
2011-10-17 04:55:31 +00:00

25 lines
605 B
C

$FreeBSD$
--- src/s/freebsd.h.orig
+++ src/s/freebsd.h
@@ -61,3 +61,19 @@
/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */
#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
+
+#define INTERRUPT_INPUT
+
+#define PTY_ITERATION int i; for (i = 0; i < 1; i++)
+#define PTY_NAME_SPRINTF /* none */
+#define PTY_TTY_NAME_SPRINTF /* none */
+#define PTY_OPEN \
+ do \
+ { \
+ int slave; \
+ if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) \
+ fd = -1; \
+ else \
+ emacs_close (slave); \
+ } \
+ while (0)