Skip to content
Permalink
Browse files
src: remove <unistd.h> from node_os.cc
The file does not use sysconf() and its use of gethostname() has been
removed, so including <unistd.h> appears to be unnecessary.

PR-URL: #44668
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
tniessen authored and RafaelGSS committed Sep 26, 2022
1 parent ca5fb67 commit 3036b85d71fda2a780547be779e38046608b0e10
Showing 1 changed file with 0 additions and 1 deletion.
@@ -28,7 +28,6 @@
#endif // __MINGW32__

#ifdef __POSIX__
# include <unistd.h> // gethostname, sysconf
# include <climits> // PATH_MAX on Solaris.
#endif // __POSIX__

0 comments on commit 3036b85

Please sign in to comment.