diff options
author | Divam Narula <dfordivam@gmail.com> | 2020-08-16 10:13:57 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 10:13:57 +0530 |
commit | 818d24c9db757764e03e4ec94617d6585f44ea2d (patch) | |
tree | 3854dc5a049d1820fbc60dd324cce5e0b5d9077b /pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch | |
parent | fee55e2bb1e9f471bc8342a13ca062c710d39f41 (diff) | |
parent | dfbda2135c3f8f7b158b7621d9745b94c8a56cf8 (diff) | |
download | nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.gz nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.bz2 nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.lz nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.xz nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.zst nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.zip |
Merge branch 'staging' into upstream-wasm-cross-nixpkgs-4
Diffstat (limited to 'pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch')
-rw-r--r-- | pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch b/pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch new file mode 100644 index 00000000000..f575af5ecd3 --- /dev/null +++ b/pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarations.patch @@ -0,0 +1,25 @@ +Disable openpty() and forkpty() prototypes when needed. +--- a/yasr/yasr.h ++++ b/yasr/yasr.h +@@ -308,8 +308,10 @@ extern void opt_set(int num, void *val); + extern void opt_queue_empty(int ll); + extern void opt_write(FILE * fp); + ++#ifndef HAVE_OPENPTY + /* openpty.c prototypes */ + extern int openpty(int *, int *, char *, struct termios *, struct winsize *); ++#endif + + /* cfmakeraw.c prototypes */ + extern void cfmakeraw(struct termios *); +@@ -317,8 +319,10 @@ extern void cfmakeraw(struct termios *); + /* login_tty.c prototypes */ + extern int login_tty(int); + ++#ifndef HAVE_FORKPTY + /* forkpty.c prototypes */ + extern int forkpty(int *, char *, struct termios *, struct winsize *); ++#endif + + /* tbc - Would it be more efficient to ensure that "blank" grids always held + ascii 0x20 rather than ascii 0x00? */ |