projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uxpty.c uses non-X/Open facilities (notably strsignal()), so don't define
[u/mdw/putty]
/
unix
/
uxpty.c
diff --git
a/unix/uxpty.c
b/unix/uxpty.c
index
f91dc71
..
8c25f93
100644
(file)
--- a/
unix/uxpty.c
+++ b/
unix/uxpty.c
@@
-2,8
+2,6
@@
* Pseudo-tty backend for pterm.
*/
* Pseudo-tty backend for pterm.
*/
-#define _XOPEN_SOURCE 600
-#define _XOPEN_SOURCE_EXTENDED
#define _GNU_SOURCE
#include <stdio.h>
#define _GNU_SOURCE
#include <stdio.h>
@@
-813,7
+811,7
@@
static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
sprintf(shellname, "-%s", p);
} else
shellname = shell;
sprintf(shellname, "-%s", p);
} else
shellname = shell;
- execl(getenv("SHELL"), shellname, NULL);
+ execl(getenv("SHELL"), shellname,
(void *)
NULL);
}
/*
}
/*