Remove unistd.h header usage

Sun, 24 Nov 2024 04:19:04 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Sun, 24 Nov 2024 04:19:04 -0600
changeset 43090
a99e622e89ee
parent 43089
0e1498cd22b2
child 43091
f77300d83505

Remove unistd.h header usage

I could not find any use of the symbols defined in
https://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html

(except for `NULL`, which we clearly get elsewhere.)

Testing Done:
Compiled only.

Reviewed at https://reviews.imfreedom.org/r/3680/

meson.build file | annotate | diff | comparison | revisions
pidgin/plugins/gestures/stroke-draw.c file | annotate | diff | comparison | revisions
pidgin/plugins/gestures/stroke.c file | annotate | diff | comparison | revisions
--- a/meson.build	Sat Nov 23 23:43:28 2024 -0600
+++ b/meson.build	Sun Nov 24 04:19:04 2024 -0600
@@ -130,9 +130,6 @@
 	dnsapi = []
 endif
 
-# Checks for header files.
-conf.set('HAVE_UNISTD_H', compiler.has_header('unistd.h'))
-
 # Check for directories
 if IS_WIN32
 	foreach dir : ['bin', 'lib', 'data', 'sysconf', 'locale']
--- a/pidgin/plugins/gestures/stroke-draw.c	Sat Nov 23 23:43:28 2024 -0600
+++ b/pidgin/plugins/gestures/stroke-draw.c	Sun Nov 24 04:19:04 2024 -0600
@@ -6,9 +6,6 @@
 
 #include "purpleconfig.h"
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <glib.h>
--- a/pidgin/plugins/gestures/stroke.c	Sat Nov 23 23:43:28 2024 -0600
+++ b/pidgin/plugins/gestures/stroke.c	Sun Nov 24 04:19:04 2024 -0600
@@ -9,9 +9,6 @@
 
 #include "purpleconfig.h"
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <math.h>

mercurial