Created
December 10, 2019 18:31
-
-
Save kraj/d30b2a07b7e2255420a024afb77a1a95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- main.c.orig | |
+++ main.c | |
@@ -2654,7 +2654,7 @@ get_pty(int *pty, char *from GCC_UNUSED) | |
close(opened_tty); | |
opened_tty = -1; | |
} | |
-#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT_PTY_ISATTY) | |
+#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) | |
if ((*pty = posix_openpt(O_RDWR)) >= 0) { | |
char *name = ptsname(*pty); | |
if (name != 0) { | |
@@ -3735,7 +3735,7 @@ spawnXTerm(XtermWidget xw) | |
/* | |
* now in child process | |
*/ | |
-#if defined(_POSIX_SOURCE) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__) | |
+#if defined(_POSIX_VERSION) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__) | |
int pgrp = setsid(); /* variable may not be used... */ | |
#else | |
int pgrp = getpid(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment