Skip to content

Commit

Permalink
(__ASSUME_STD_AUXV): Define for linux >= 2.4.5 on powerpc. (__ASSUME_…
Browse files Browse the repository at this point in the history
…MMAP2_SYSCALL): Likewise.
  • Loading branch information
Andreas Jaeger committed May 20, 2001
1 parent d6e614d commit 7060e53
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sysdeps/unix/sysv/linux/kernel-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,20 @@
/* When did O_DIRECTORY became available? Early in 2.3 but when?
Be safe, use 2.3.99. */
#if __LINUX_KERNEL_VERSION >= 131939
# define __ASSUME_O_DIRECTORY 1
# define __ASSUME_O_DIRECTORY 1
#endif

/* Starting with one of the 2.4.0 pre-releases the Linux kernel passes
up the page size information. */
#if __LINUX_KERNEL_VERSION >= 132097
# define __ASSUME_AT_PAGESIZE 1
# define __ASSUME_AT_PAGESIZE 1
#endif

/* Starting with 2.4.? kernels PPC passes the AUXV in the standard way. */
#if __LINUX_KERNEL_VERSION >= (132096+99) && defined __powerpc__
# define __ASSUME_STD_AUXV 1
/* Starting with 2.4.5 kernels PPC passes the AUXV in the standard way
and the mmap2 syscall made it into the official kernel. */
#if __LINUX_KERNEL_VERSION >= (132096+5) && defined __powerpc__
# define __ASSUME_STD_AUXV 1
# define __ASSUME_MMAP2_SYSCALL 1
#endif

/* There are an infinite number of PA-RISC kernel versions numbered
Expand Down

0 comments on commit 7060e53

Please sign in to comment.