Skip to content

Commit 3036b85

Browse files
tniessenRafaelGSS
authored andcommitted
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>
1 parent ca5fb67 commit 3036b85

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/node_os.cc

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#endif // __MINGW32__
2929

3030
#ifdef __POSIX__
31-
# include <unistd.h> // gethostname, sysconf
3231
# include <climits> // PATH_MAX on Solaris.
3332
#endif // __POSIX__
3433

0 commit comments

Comments
 (0)