diff options
author | Andy Moreton <andrewjmoreton@gmail.com> | 2016-04-02 12:39:44 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-04-02 12:39:44 +0300 |
commit | 294b788009564e2692afb27a8205593da05c344c (patch) | |
tree | fe63e1115a69ba30b8358f97d2068b1c50569e5b /src/w32xfns.c | |
parent | afc9e6542aa6f2d0d7986db3d8c2cb654e107443 (diff) | |
download | emacs-294b788009564e2692afb27a8205593da05c344c.tar.gz |
Fix compilation of Cygwin w32 port
* src/w32xfns.c (init_crit, delete_crit) [HAVE_W32NOTIFY]: Only
initialize and free the notification set if compiling with
w32notify feature.
Diffstat (limited to 'src/w32xfns.c')
-rw-r--r-- | src/w32xfns.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32xfns.c b/src/w32xfns.c index 9b633c4c56a..b5b22c9aa52 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -48,6 +48,7 @@ init_crit (void) when the input queue is empty, so make it a manual reset event. */ input_available = CreateEvent (NULL, TRUE, FALSE, NULL); +#if HAVE_W32NOTIFY /* Initialize the linked list of notifications sets that will be used to communicate between the watching worker threads and the main thread. */ @@ -60,6 +61,7 @@ init_crit (void) } else DebPrint(("Out of memory: can't initialize notifications sets.")); +#endif #ifdef WINDOWSNT keyboard_handle = input_available; @@ -90,6 +92,7 @@ delete_crit (void) interrupt_handle = NULL; } +#if HAVE_W32NOTIFY if (notifications_set_head) { /* Free any remaining notifications set that could be left over. */ @@ -104,6 +107,7 @@ delete_crit (void) } } free (notifications_set_head); +#endif } void |