Sebastian Kuschel reports that pfd_closing can be called for a socket
[u/mdw/putty] / macosx / osx.h
1 #ifndef PUTTY_OSX_H
2 #define PUTTY_OSX_H
3
4 /*
5 * Cocoa defines `FontSpec' itself, so we must change its name.
6 * (Arrgh.)
7 */
8 #define FontSpec FontSpec_OSX_Proof
9
10 /*
11 * Define the various compatibility symbols to make uxpty.c compile
12 * correctly on OS X.
13 */
14 #define BSD_PTYS
15 #define OMIT_UTMP
16 #define HAVE_NO_SETRESUID
17 #define NOT_X_WINDOWS
18
19 /*
20 * OS X is largely just Unix, so we can include most of this
21 * unchanged.
22 */
23 #include "unix.h"
24
25 /*
26 * Functions exported by osxsel.m. (Both of these functions are
27 * expected to be called in the _main_ thread: the select subthread
28 * is an implementation detail of osxsel.m and ideally should not
29 * be visible at all outside it.)
30 */
31 void osxsel_init(void); /* call this to kick things off */
32 void osxsel_process_results(void); /* call this on receipt of a netevent */
33
34 #endif