70 |
|
#else /* stubs for BasiliskII */ |
71 |
|
#define log printf |
72 |
|
#define error printf |
73 |
< |
#define fatal(x) {printf("Fatal error: %s", x); return 0} |
73 |
> |
#define fatal(x) do { printf("Fatal error: %s", x); return 0; } while(0) |
74 |
|
#endif /* not in BasiliskII */ |
75 |
|
|
76 |
+ |
#define mysig_t sig_t |
77 |
+ |
#define mysignal signal |
78 |
+ |
#include <signal.h> |
79 |
+ |
|
80 |
|
/* Pty allocated with _getpty gets broken if we do I_PUSH:es to it. */ |
81 |
|
#if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) |
82 |
|
#undef HAVE_DEV_PTMX |
88 |
|
#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H) |
89 |
|
# include <sys/stropts.h> |
90 |
|
#endif |
91 |
+ |
#if defined(HAVE_DEV_PTMX) && defined(HAVE_STROPTS_H) |
92 |
+ |
# include <stropts.h> |
93 |
+ |
#endif |
94 |
|
|
95 |
|
#ifndef O_NOCTTY |
96 |
|
#define O_NOCTTY 0 |