diff options
author | Peter Baumann <baumann@floridita.rasdaman> | 2009-10-15 23:22:12 +0200 |
---|---|---|
committer | www-data <www-data@ubuntu.localdomain> | 2010-06-08 10:50:36 +0200 |
commit | d302192797e34634e607e4a42170bdb137fc934e (patch) | |
tree | 6665f3dd6477b951d4e64355181e2eac5ec23a25 | |
parent | 06b19f99cf844f4af72bee523ed61ebdbaa4c8b5 (diff) | |
download | rasdaman-upstream-d302192797e34634e607e4a42170bdb137fc934e.tar.gz rasdaman-upstream-d302192797e34634e607e4a42170bdb137fc934e.tar.xz rasdaman-upstream-d302192797e34634e607e4a42170bdb137fc934e.zip |
PB: workaround for missing ARG_MAX in limits.h in some glibc versions
-rw-r--r-- | rasmgr/rasmgr_localsrv.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rasmgr/rasmgr_localsrv.cc b/rasmgr/rasmgr_localsrv.cc index ede2286..211f03e 100644 --- a/rasmgr/rasmgr_localsrv.cc +++ b/rasmgr/rasmgr_localsrv.cc @@ -41,7 +41,15 @@ using namespace std; #include "rasmgr_srv.hh" #include <signal.h> #include <time.h> + #include <linux/limits.h> // ARG_MAX +// fix for missing ARG_MAX; workaround for glibc-2.8 and above +#if defined(_SC_ARG_MAX) +# if defined(ARG_MAX) +# undef ARG_MAX +# endif +# define ARG_MAX sysconf (_SC_ARG_MAX) +#endif #include "raslib/rminit.hh" |