| 10 |
|
#include "copyright.h" |
| 11 |
|
|
| 12 |
|
#include <sys/types.h> |
| 13 |
< |
#ifndef _WIN32 |
| 13 |
> |
#if !defined(_WIN32) && !defined(_WIN64) |
| 14 |
|
#include <sys/wait.h> |
| 15 |
|
#endif |
| 16 |
|
|
| 147 |
|
fclose(devin); |
| 148 |
|
if (devchild < 0) |
| 149 |
|
return; |
| 150 |
< |
#ifndef _WIN32 |
| 150 |
> |
#if !defined(_WIN32) && !defined(_WIN64) |
| 151 |
|
while ((pid = wait(0)) != -1 && pid != devchild) |
| 152 |
|
; |
| 153 |
|
#endif |
| 177 |
|
) |
| 178 |
|
{ |
| 179 |
|
putc(COM_PAINTR, devout); |
| 180 |
< |
fwrite((char *)col, sizeof(COLOR), 1, devout); |
| 180 |
> |
putbinary(col, sizeof(COLOR), 1, devout); |
| 181 |
|
putw(xmin, devout); |
| 182 |
|
putw(ymin, devout); |
| 183 |
|
putw(xmax, devout); |
| 289 |
|
static void |
| 290 |
|
getstate(void) /* get driver state variables */ |
| 291 |
|
{ |
| 292 |
< |
fread((char *)&comm_driver.pixaspect, |
| 292 |
> |
getbinary((char *)&comm_driver.pixaspect, |
| 293 |
|
sizeof(comm_driver.pixaspect), 1, devin); |
| 294 |
|
comm_driver.xsiz = getw(devin); |
| 295 |
|
comm_driver.ysiz = getw(devin); |