summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-16 22:40:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-16 23:09:06 -0400
commitab635cb660a30603b9e7e64ab5c89e8aee05b8dd (patch)
treee55485b606f563a883d59618ed3874b84d757732
parentdb4c67436621ee1ce62017ea1c81d70016daf76f (diff)
downloadpango-ab635cb660a30603b9e7e64ab5c89e8aee05b8dd.tar.gz
examples: Stop using HAVE_UNISTD_H
We include that header in many other places without this check. The only check we use elsewhere is for G_OS_WIN32. This will let us clean up our meson.build file a little.
-rw-r--r--examples/pangowin32tobmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c
index c27eac94..e14466e3 100644
--- a/examples/pangowin32tobmp.c
+++ b/examples/pangowin32tobmp.c
@@ -31,7 +31,7 @@
#include <errno.h>
#include <string.h>
-#ifdef HAVE_UNISTD_H
+#ifndef G_OS_WIN32
#include <unistd.h>
#endif
#include <stdio.h>