Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 25 lines 814 B view raw
1Disable openpty() and forkpty() prototypes when needed. 2--- a/yasr/yasr.h 3+++ b/yasr/yasr.h 4@@ -308,8 +308,10 @@ extern void opt_set(int num, void *val); 5 extern void opt_queue_empty(int ll); 6 extern void opt_write(FILE * fp); 7 8+#ifndef HAVE_OPENPTY 9 /* openpty.c prototypes */ 10 extern int openpty(int *, int *, char *, struct termios *, struct winsize *); 11+#endif 12 13 /* cfmakeraw.c prototypes */ 14 extern void cfmakeraw(struct termios *); 15@@ -317,8 +319,10 @@ extern void cfmakeraw(struct termios *); 16 /* login_tty.c prototypes */ 17 extern int login_tty(int); 18 19+#ifndef HAVE_FORKPTY 20 /* forkpty.c prototypes */ 21 extern int forkpty(int *, char *, struct termios *, struct winsize *); 22+#endif 23 24 /* tbc - Would it be more efficient to ensure that "blank" grids always held 25 ascii 0x20 rather than ascii 0x00? */