]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
cygtermd: be more specific in define of _XOPEN_SOURCE.
authorSimon Tatham <anakin@pobox.com>
Mon, 19 Sep 2016 13:17:26 +0000 (14:17 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 19 Sep 2016 13:17:26 +0000 (14:17 +0100)
On Debian stretch, it seems we don't get setpgrp() unless we do not
merely define it, but define it to 500 or greater.

contrib/cygtermd/pty.c

index e22cd5f75f063e553f275679caa0d23a9ccda46c..6080ecfb3acd3ab06f60099e44c173950395ca87 100644 (file)
@@ -2,7 +2,7 @@
  * pty.c - pseudo-terminal handling
  */
 
-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
 #include <features.h>
 
 #include <stdio.h>