[TRIVIAL][2.6] Documentation/vm/hugetlbfs.txt

From: Maciej Soltysiak (solt@dns.toxicfilms.tv)
Date: Wed Aug 06 2003 - 11:31:29 EST


Hi Rusty,

here's a patch to change the hugetlbfs examples actually being possible to
compile. errno is being used while it's not included.

Regards,
Maciej

diff -u linux-2.6.0-test2/Documentation/vm/hugetlbpage.txt linux-2.6.0-test2-mm4/Documentation/vm/hugetlbpage.txt
--- linux-2.6.0-test2/Documentation/vm/hugetlbpage.txt 2003-07-27 18:57:41.000000000 +0200
+++ linux-2.6.0-test2-mm4/Documentation/vm/hugetlbpage.txt 2003-08-05 23:01:19.180391896 +0200
@@ -107,6 +107,7 @@
 #include <sys/shm.h>
 #include <sys/types.h>
 #include <sys/mman.h>
+#include <errno.h>

 extern int errno;
 #define SHM_HUGETLB 04000
@@ -167,6 +168,7 @@
 #include <stdio.h>
 #include <sys/mman.h>
 #include <fcntl.h>
+#include <errno.h>

 #define FILE_NAME "/mnt/hugepagefile"
 #define LENGTH (256*1024*1024)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:33 EST