diff options
| author | Paul Eggert | 2016-04-04 09:42:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-04 09:44:19 -0700 |
| commit | 0322457e2bec0b9409a03887a8235dbe14e357f4 (patch) | |
| tree | ef9d146e3f1ea2e33c84283565cecd832a885d52 /src/print.c | |
| parent | 6bccb19c9bef1189c8e853ff7cc16b889a3a57e3 (diff) | |
| download | emacs-0322457e2bec0b9409a03887a8235dbe14e357f4.tar.gz emacs-0322457e2bec0b9409a03887a8235dbe14e357f4.zip | |
Port redirect-debugging-output to MS-Windows
Suggested by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00037.html
* src/print.c [WINDOWSNT]: Include sys/socket.h.
* src/w32.c (sys_dup2): Work around problem with MS-Windows _dup2.
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index db2918ff478..83edbb6bfa4 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -38,6 +38,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include <float.h> | 38 | #include <float.h> |
| 39 | #include <ftoastr.h> | 39 | #include <ftoastr.h> |
| 40 | 40 | ||
| 41 | #ifdef WINDOWSNT | ||
| 42 | # include <sys/socket.h> /* for F_DUPFD_CLOEXEC */ | ||
| 43 | #endif | ||
| 44 | |||
| 41 | struct terminal; | 45 | struct terminal; |
| 42 | 46 | ||
| 43 | /* Avoid actual stack overflow in print. */ | 47 | /* Avoid actual stack overflow in print. */ |