summaryrefslogtreecommitdiffstats
path: root/rasmgr/rasmgr_localsrv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'rasmgr/rasmgr_localsrv.cc')
-rw-r--r--rasmgr/rasmgr_localsrv.cc8
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"