diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-06-01 22:24:38 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-06-01 22:24:38 +0000 |
commit | 17929cd644abda2efc842eb7a224da347dedfc9a (patch) | |
tree | f9e3a22af5d3d64fbe0bb9303ceeed3fa73129e0 /m4 | |
parent | 54ebc1a366475333acb5fda8e161f751c9853b5c (diff) | |
download | ATCD-17929cd644abda2efc842eb7a224da347dedfc9a.tar.gz |
ChangeLogTag:Thu Jun 1 15:16:26 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/platform.m4 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/m4/platform.m4 b/m4/platform.m4 index 3ba1eda5b38..e64b8860907 100644 --- a/m4/platform.m4 +++ b/m4/platform.m4 @@ -9,7 +9,7 @@ dnl to define. dnl dnl ------------------------------------------------------------------------- -dnl Copyright (C) 1998, 1999 Ossama Othman +dnl Copyright (C) 1998, 1999, 2000 Ossama Othman dnl dnl All Rights Reserved dnl @@ -145,6 +145,28 @@ dnl FIXME: "FSU" isn't a platform! We need to move this somewhere. AC_DEFINE(ACE_HAS_BIG_FD_SET) dnl FIXME: We need a test for this! AC_DEFINE(ACE_UINT64_FORMAT_SPECIFIER, "%Lu") AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + + AC_EGREP_CPP([PRE_2_2_0_LINUX_KERNEL], + [ +#if !defined (ACE_DEFAULT_SELECT_REACTOR_SIZE) +# include <linux/version.h> + +/* Macro used to compute LINUX_VERSION_CODE in <linux/version.h> + header. Older kernels didn't define this macro. */ +# ifndef KERNEL_VERSION +# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +# endif + +/* Pre-2.2.x kernels limited the maximum number of file descriptors + for non-root processes to 256. */ +# if LINUX_VERSION_CODE < KERNEL_VERSION (2,2,0) + PRE_2_2_0_LINUX_KERNEL +# endif /* LINUX_VERSION_CODE < KERNEL_VERSION (2,2,0) */ +#endif /* ACE_DEFAULT_SELECT_REACTOR_SIZE */ + ], + [ + AC_DEFINE(ACE_DEFAULT_SELECT_REACTOR_SIZE, 256) + ],) ;; *lynxos*) AC_DEFINE(_POSIX_THREADS_CALLS) |