Commit fe85f14c authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Documentation_vm_hugetlbfs.txt cleanup

From:  Maciej Soltysiak <solt@dns.toxicfilms.tv>

  This changes the hugetlbfs examples actually being possible to
  compile. errno is being used while it's not included.

(Acked by William Lee Irwin III <wli@holomorphy.com>)
parent 13d73174
......@@ -107,6 +107,7 @@ calls. Though the mount of filesystem will be required for using mmaps.
#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 @@ main()
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#define FILE_NAME "/mnt/hugepagefile"
#define LENGTH (256*1024*1024)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment