1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-26 15:38:20 +01:00
Because it seems people still use OS/2
This commit is contained in:
Peter De Wachter 2019-03-25 20:46:20 +01:00
parent aa5fb9e2f0
commit 7b4bf383bd

View File

@ -29,6 +29,10 @@
#include "job.h" #include "job.h"
#include "debug.h" #include "debug.h"
#ifndef O_BINARY
#define O_BINARY 0
#endif
namespace { namespace {
@ -146,7 +150,7 @@ int main(int argc, char *argv[]) {
int fd = STDIN_FILENO; int fd = STDIN_FILENO;
if (job_filename) { if (job_filename) {
fd = open(job_filename, O_RDONLY); fd = open(job_filename, O_RDONLY | O_BINARY);
if (fd < 0) { if (fd < 0) {
fprintf(stderr, "ERROR: " PACKAGE ": Unable to open raster file\n"); fprintf(stderr, "ERROR: " PACKAGE ": Unable to open raster file\n");
return 1; return 1;