From: Chun-wei Fan Date: Thu, 30 Jan 2020 14:34:53 +0000 (+0800) Subject: tests/testdnd2.c: Don't include unistd.h unconditionally X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~90^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f2915180a6a09c10f38aed15b4aefeaa86fe12fc;p=gtk4.git tests/testdnd2.c: Don't include unistd.h unconditionally Instead, on Windows when it is not available, include io.h for close() --- diff --git a/tests/testdnd2.c b/tests/testdnd2.c index 11d604fee5..a9a2f6382f 100644 --- a/tests/testdnd2.c +++ b/tests/testdnd2.c @@ -1,6 +1,11 @@ -#include #include +#ifdef HAVE_UNISTD_H +#include +#elif defined (G_OS_WIN32) +#include +#endif + static GdkTexture * get_image_texture (GtkImage *image, int *out_size)