File pdsh-2.16-glibc28.patch of Package pdsh

Index: src/common/hostlist.h
===================================================================
--- src/common/hostlist.h.orig	2008-01-29 18:35:48.000000000 +0100
+++ src/common/hostlist.h	2008-04-11 19:52:21.000000000 +0200
@@ -29,6 +29,8 @@
 #ifndef _HOSTLIST_H
 #define _HOSTLIST_H
 
+#include <sys/types.h>
+
 /* Notes:
  *
  * If WITH_LSD_FATAL_ERROR_FUNC is defined, the linker will expect to
Index: src/pdsh/xpopen.c
===================================================================
--- src/pdsh/xpopen.c.orig	2006-02-14 17:11:43.000000000 +0100
+++ src/pdsh/xpopen.c	2008-04-11 20:00:17.000000000 +0200
@@ -49,6 +49,13 @@
 #define TAB   '\t'
 #define NWLN  '\n'
 
+#if defined(_SC_ARG_MAX)
+# if defined(ARG_MAX)
+#    undef ARG_MAX
+# endif
+# define ARG_MAX sysconf (_SC_ARG_MAX)
+#endif
+
 extern int errno;
 
 static struct pid {
Index: src/qsnet/mqshd.c
===================================================================
--- src/qsnet/mqshd.c.orig	2006-02-14 17:11:43.000000000 +0100
+++ src/qsnet/mqshd.c	2008-04-11 20:01:20.000000000 +0200
@@ -80,14 +80,14 @@
  * PAM modifications by Michael K. Johnson <johnsonm@redhat.com>
  */
 
-char copyright[] =
+const char copyright[] =
 "@(#) Copyright (c) 1988, 1989, 2003 The Regents of the University of California.\n"
 "All rights reserved.\n";
 
 /*
  * From: @(#)mqshd.c     5.38 (Berkeley) 3/2/91
  */
-char rcsid[] = "$Id: mqshd.c 1009 2006-02-14 16:11:43Z grondo $";
+const char rcsid[] = "$Id: mqshd.c 1009 2006-02-14 16:11:43Z grondo $";
 /* #include "version.h" */
 
 #if     HAVE_CONFIG_H
@@ -127,6 +127,13 @@ char rcsid[] = "$Id: mqshd.c 1009 2006-0
 #define INET_ADDRSTRLEN 16
 #endif
 
+#if defined(_SC_ARG_MAX)
+# if defined(ARG_MAX)
+#    undef ARG_MAX
+# endif
+# define ARG_MAX sysconf (_SC_ARG_MAX)
+#endif
+
 #define MAX_MBUF_SIZE 4096
 
 extern int paranoid;
Index: src/qsnet/qshd.c
===================================================================
--- src/qsnet/qshd.c.orig	2006-02-14 17:11:43.000000000 +0100
+++ src/qsnet/qshd.c	2008-04-11 20:02:02.000000000 +0200
@@ -66,14 +66,14 @@
  * PAM modifications by Michael K. Johnson <johnsonm@redhat.com>
  */
 
-char copyright[] =
+const char copyright[] =
 "@(#) Copyright (c) 1988, 1989 The Regents of the University of California.\n"
 "All rights reserved.\n";
 
 /*
  * From: @(#)rshd.c	5.38 (Berkeley) 3/2/91
  */
-char rcsid[] = "$Id: qshd.c 1009 2006-02-14 16:11:43Z grondo $";
+const char rcsid[] = "$Id: qshd.c 1009 2006-02-14 16:11:43Z grondo $";
 /*#include "../version.h"*/
 
 #if     HAVE_CONFIG_H
@@ -94,6 +94,13 @@ char rcsid[] = "$Id: qshd.c 1009 2006-02
 #include "src/common/xmalloc.h"
 #include "qshell.h"
 
+#if defined(_SC_ARG_MAX)
+# if defined(ARG_MAX)
+#    undef ARG_MAX
+# endif
+# define ARG_MAX sysconf (_SC_ARG_MAX)
+#endif 
+
 extern int paranoid;
 extern int sent_null;
 extern int allow_root_rhosts;