summaryrefslogtreecommitdiffstats
path: root/mount/mk_loop_h
diff options
context:
space:
mode:
Diffstat (limited to 'mount/mk_loop_h')
-rw-r--r--mount/mk_loop_h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mount/mk_loop_h b/mount/mk_loop_h
index 9351b57e0..0f8a1a617 100644
--- a/mount/mk_loop_h
+++ b/mount/mk_loop_h
@@ -8,11 +8,12 @@ rm -f loop.h
# Since 1.3.79 there is an include file <asm/posix_types.h>
# that defines __kernel_dev_t.
# (The file itself appeared in 1.3.78, but there it defined __dev_t.)
-# If it exists, we use it. Otherwise we guess that __kernel_dev_t
+# If it exists, we use it, or, rather, <linux/posix_types.h> which
+# avoids namespace pollution. Otherwise we guess that __kernel_dev_t
# is an unsigned short (which is true on i386, but false on alpha).
-if [ -f /usr/include/asm/posix_types.h ]; then
- echo '#include <asm/posix_types.h>' >> loop.h
+if [ -f /usr/include/linux/posix_types.h ]; then
+ echo '#include <linux/posix_types.h>' >> loop.h
echo '#define dev_t __kernel_dev_t' >> loop.h
else
echo '#define dev_t unsigned short' >> loop.h