Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2022-09-18 15:17:45 +0300
committerRafaelGSS <rafael.nunu@hotmail.com>2022-09-27 01:07:45 +0300
commit3036b85d71fda2a780547be779e38046608b0e10 (patch)
treea13581a43631867f33a8294233105d4fdcdf5c14 /src
parentca5fb67b4ecc145578fc84e964253b10ff41070a (diff)
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src')
-rw-r--r--src/node_os.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node_os.cc b/src/node_os.cc
index 4a3b9f608d7..451ff08cc3f 100644
--- a/src/node_os.cc
+++ b/src/node_os.cc
@@ -28,7 +28,6 @@
#endif // __MINGW32__
#ifdef __POSIX__
-# include <unistd.h> // gethostname, sysconf
# include <climits> // PATH_MAX on Solaris.
#endif // __POSIX__