about summary refs log tree commit diff
path: root/sysdeps/nacl/dl-fileid.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nacl/dl-fileid.h')
-rw-r--r--sysdeps/nacl/dl-fileid.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/nacl/dl-fileid.h b/sysdeps/nacl/dl-fileid.h
new file mode 100644
index 0000000000..4c34581701
--- /dev/null
+++ b/sysdeps/nacl/dl-fileid.h
@@ -0,0 +1,8 @@
+/* Bypass sysdeps/posix/dl-fileid.h, which relies on st_dev/st_ino being
+   reliable.  Under NaCl, we cannot always expect them to be useful.
+   Fortunately, in the ways NaCl is used it's far less likely that two
+   different names for the same file would be used in dlopen or the like,
+   so failing to notice re-opening the same file is not so likely to be a
+   problem in practice.  */
+
+#include <sysdeps/generic/dl-fileid.h>