mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-02 03:15:52 +00:00
os/access.c: drop dead <sys/utsname.h> include
The `#if defined(SVR4) || defined(__GNU__)` include of <sys/utsname.h> is unused: access.c calls neither uname() nor references struct utsname anywhere. Host-name retrieval was long ago factored out into xhostname() (os/xhostname.h), which owns the gethostname()/uname() logic; the include here is a leftover. The explanatory comment above the xhostname() call (mentioning uname()) is kept — it still documents why xhostname is preferred over gethostname(). No feature flag needed — there is nothing to gate. Verified: Linux -Dwerror=true build still links Xvfb and Xnest. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
b9d651f800
commit
26e24dba36
1 changed files with 0 additions and 3 deletions
|
|
@ -122,9 +122,6 @@ SOFTWARE.
|
|||
#include <sys/un.h>
|
||||
#endif
|
||||
|
||||
#if defined(SVR4) || defined(__GNU__)
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
#ifdef __GNU__
|
||||
#undef SIOCGIFCONF
|
||||
#include <netdb.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue