mmap-util.h revision 9e09fbaa89624ec7b6154aa7607057bbd553805a
#ifndef __MMAP_UTIL_H
#define __MMAP_UTIL_H
#include <unistd.h>
#ifdef HAVE_LINUX_MREMAP
# define __USE_GNU /* for MREMAP_MAYMOVE */
#endif
#if !defined (MREMAP_MAYMOVE) && !defined (HAVE_LINUX_MREMAP)
# define MREMAP_MAYMOVE 1
#endif
#ifndef HAVE_MADVISE
# define madvise my_madvise
# ifndef MADV_NORMAL
# define MADV_NORMAL 0
# define MADV_RANDOM 0
# define MADV_SEQUENTIAL 0
# define MADV_WILLNEED 0
# define MADV_DONTNEED 0
# endif
#endif
/* for allocating anonymous mmap()s, with portable mremap(). these must not
be mixed with any standard mmap calls. */
unsigned long flags);
#endif