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 Sep 18, 2022
1 parent 7621d56 commit 5e3d003
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_os.cc
Original file line number Diff line number Diff line change
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 5e3d003

Please sign in to comment.