comparison lib-src/insert-data-in-exec.c @ 2502:261c5cd19207

[xemacs-hg @ 2005-01-26 03:40:10 by ben] Puh-raise the lawd! insert-data-in-exec.c: Need to open everything as binary. Makefile.in.in: Don't compile executable as Windows (-mwindows) under Cygwin. Semi-recent changes to Cygwin's executable-startup handling make it impossible to access the TTY this way. Don't use special linker file under Cygwin (cygwin.sc) except when non-PDUMP (even in this case it is highly questionable); you get errors like 1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5 5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
author ben
date Wed, 26 Jan 2005 03:40:15 +0000
parents d31a2df82ddb
children dfc9fe46c294
comparison
equal deleted inserted replaced
2501:b02114faf3c2 2502:261c5cd19207
119 119
120 found: 120 found:
121 fprintf(stderr, "dumped_data found at offset 0x%lx, patching.\n", i); 121 fprintf(stderr, "dumped_data found at offset 0x%lx, patching.\n", i);
122 122
123 sprintf(msg, "Opening %s failed", argv[2]); 123 sprintf(msg, "Opening %s failed", argv[2]);
124 dump = fopen(argv[2], "r"); 124 dump = fopen(argv[2], "rb");
125 if(!dump) { 125 if(!dump) {
126 perror(msg); 126 perror(msg);
127 exit(1); 127 exit(1);
128 } 128 }
129 129