Skip to content

Commit

Permalink
src: remove <unistd.h> from node_os.cc
Browse files Browse the repository at this point in the history
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 3036b85
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_os.cc
Expand Up @@ -28,7 +28,6 @@
#endif // __MINGW32__

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

Expand Down

0 comments on commit 3036b85

Please sign in to comment.