* fuser is not compiled on hurd-i386 Debian #673485
* No TEXTRELS in src/lists built as PIE on x86
* Fake pstree root for kernels with hidepid turned on
+ * More fixes for Cygwin SF Patch #3511920
Changes in 22.16
================
if (root_stat) free(root_stat);
if (cwd_stat) free(cwd_stat);
if (exe_stat) free(exe_stat);
-#ifndef __linux__
+#if !defined (__linux__) && !defined (__CYGWIN__)
check_dir(pid, "lib", dev_head, ino_head, uid, ACCESS_MMAP,
sockets, netdev);
check_dir(pid, "mmap", dev_head, ino_head, uid, ACCESS_MMAP,
#endif
netdev = find_net_dev();
+#ifndef __CYGWIN__ /* Cygwin doesn't support /proc/net/unix */
fill_unix_cache(&unixsockets);
+#endif
for (argc_cnt = 1; argc_cnt < argc; argc_cnt++) {
current_argv = argv[argc_cnt];
st.st_ino = 0;
if ((thedev = device(filepath)) < 0)
#else
- if (!st.st_ino && timeout(stat, filepath, &st, 5) != 0)
+ if (timeout(stat, filepath, &st, 5) != 0)
#endif
{
if (errno != ENOENT) {
filepath, strerror(errno));
}
} else {
+#ifndef _LISTS_H
+ thedev = st.st_dev;
+#endif
if (thedev == netdev) {
for (sock_tmp = sockets; sock_tmp != NULL;
sock_tmp = sock_tmp->next) {