From 3a3af36f1bef68c9942e9ef3fb83cc15aeabfcc0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 5 Jan 2007 09:09:22 +0000 Subject: Atle Nissestad writes: The attached patch fixes compilation of the current svn on the nios2 platform, and updates the crt1/n/i.S files to get CTOR/DTOR-support to work. --- libc/sysdeps/linux/nios2/bits/mman.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libc/sysdeps/linux/nios2/bits/mman.h') diff --git a/libc/sysdeps/linux/nios2/bits/mman.h b/libc/sysdeps/linux/nios2/bits/mman.h index 7f644b99b..2fa35e663 100644 --- a/libc/sysdeps/linux/nios2/bits/mman.h +++ b/libc/sysdeps/linux/nios2/bits/mman.h @@ -59,6 +59,15 @@ # define MAP_NORESERVE 0x4000 /* Don't check for reservations. */ #endif +/* Advice to `madvise'. */ +#ifdef __USE_BSD +# define MADV_NORMAL 0 /* No further special treatment. */ +# define MADV_RANDOM 1 /* Expect random page references. */ +# define MADV_SEQUENTIAL 2 /* Expect sequential page references. */ +# define MADV_WILLNEED 3 /* Will need these pages. */ +# define MADV_DONTNEED 4 /* Don't need these pages. */ +#endif + /* Flags to `msync'. */ #define MS_ASYNC 1 /* Sync memory asynchronously. */ #define MS_SYNC 4 /* Synchronous memory sync. */ -- cgit v1.2.3