2003-08-06 16:33:56

by Maciej Soltysiak

[permalink] [raw]
Subject: [TRIVIAL][2.6] Documentation/vm/hugetlbfs.txt

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)