File supplibs-2.2.0.patch of Package grads
diff -aur ./curl/lib/timeval.c ../../supplibs-2.2.0-new/src/curl/lib/timeval.c
--- ./curl/lib/timeval.c 2010-05-14 00:14:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/curl/lib/timeval.c 2011-11-26 16:15:02.909488711 +0000
@@ -19,7 +19,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-
+#include <time.h>
#include "timeval.h"
#if defined(WIN32) && !defined(MSDOS)
diff -aur ./dap/AISDatabaseParser.cc ../../supplibs-2.2.0-new/src/dap/AISDatabaseParser.cc
--- ./dap/AISDatabaseParser.cc 2009-02-08 05:31:50.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/AISDatabaseParser.cc 2011-11-26 16:15:02.909488711 +0000
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#ifdef WIN32
#define vsnprintf _vsnprintf
diff -aur ./dap/cgi_util.cc ../../supplibs-2.2.0-new/src/dap/cgi_util.cc
--- ./dap/cgi_util.cc 2009-02-08 05:31:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/cgi_util.cc 2011-11-26 16:15:02.910488772 +0000
@@ -44,6 +44,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
+#include <string.h>
#ifndef TM_IN_SYS_TIME
#include <time.h>
diff -aur ./dap/Connect.cc ../../supplibs-2.2.0-new/src/dap/Connect.cc
--- ./dap/Connect.cc 2009-02-08 05:31:50.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/Connect.cc 2011-11-26 16:15:02.911488833 +0000
@@ -43,6 +43,7 @@
};
#include <stdio.h>
+#include <string.h>
#ifndef WIN32
#include <unistd.h>
#endif
diff -aur ./dap/dds.y ../../supplibs-2.2.0-new/src/dap/dds.y
--- ./dap/dds.y 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/dds.y 2011-11-26 16:15:02.912488894 +0000
@@ -53,7 +53,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-
+#include <string.h>
#include <iostream>
#include <stack>
#include <sstream>
diff -aur ./dap/DDXParser.cc ../../supplibs-2.2.0-new/src/dap/DDXParser.cc
--- ./dap/DDXParser.cc 2009-02-08 05:31:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/DDXParser.cc 2011-11-26 16:15:02.912488894 +0000
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#include "BaseType.h"
#include "Constructor.h"
diff -aur ./dap/getdap.cc ../../supplibs-2.2.0-new/src/dap/getdap.cc
--- ./dap/getdap.cc 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/getdap.cc 2011-11-26 16:15:02.913488955 +0000
@@ -46,7 +46,7 @@
#endif
#include <GetOpt.h>
-#include <string>
+#include <string.h>
#include "AISConnect.h"
#include "Response.h"
diff -aur ./dap/HTTPCache.cc ../../supplibs-2.2.0-new/src/dap/HTTPCache.cc
--- ./dap/HTTPCache.cc 2009-02-08 05:31:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/HTTPCache.cc 2011-11-26 16:15:02.914489017 +0000
@@ -27,6 +27,8 @@
#include <stdio.h>
#include <pthread.h>
+#include <limits.h>
+#include <string.h>
#include <iostream>
#include <sstream>
diff -aur ./dap/parser-util.cc ../../supplibs-2.2.0-new/src/dap/parser-util.cc
--- ./dap/parser-util.cc 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/parser-util.cc 2011-11-26 16:15:02.915489079 +0000
@@ -44,7 +44,7 @@
#include <assert.h>
#include <math.h>
#include <errno.h>
-
+#include <string.h>
#include <iostream>
#include <sstream>
diff -aur ./dap/RCReader.cc ../../supplibs-2.2.0-new/src/dap/RCReader.cc
--- ./dap/RCReader.cc 2009-02-08 05:31:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/RCReader.cc 2011-11-26 16:15:02.916489141 +0000
@@ -38,7 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
-
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff -aur ./dap/tests/TestArray.cc ../../supplibs-2.2.0-new/src/dap/tests/TestArray.cc
--- ./dap/tests/TestArray.cc 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/tests/TestArray.cc 2011-11-26 16:15:02.917489202 +0000
@@ -34,7 +34,7 @@
// jhrg 1/12/95
#include "config.h"
-
+#include <string.h>
#ifndef WIN32
#include <unistd.h>
#else
diff -aur ./dap/util.cc ../../supplibs-2.2.0-new/src/dap/util.cc
--- ./dap/util.cc 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/util.cc 2011-11-26 16:15:02.917489202 +0000
@@ -43,6 +43,7 @@
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
+#include <string.h>
#ifndef TM_IN_SYS_TIME
#include <time.h>
#else
diff -aur ./dap/util_mit.cc ../../supplibs-2.2.0-new/src/dap/util_mit.cc
--- ./dap/util_mit.cc 2009-02-08 05:31:52.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/util_mit.cc 2011-11-26 16:15:02.918489263 +0000
@@ -35,7 +35,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <string>
+#include <string.h>
#include <ctype.h>
#ifndef TM_IN_SYS_TIME
diff -aur ./dap/Vector.cc ../../supplibs-2.2.0-new/src/dap/Vector.cc
--- ./dap/Vector.cc 2009-02-08 05:31:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/dap/Vector.cc 2011-11-26 16:15:02.918489263 +0000
@@ -43,7 +43,7 @@
//#define DODS_DEBUG
#include <algorithm>
-
+#include <string.h>
#include "Vector.h"
#include "escaping.h"
#include "util.h"
diff -aur ./gadap/src/gaConnect.cc ../../supplibs-2.2.0-new/src/gadap/src/gaConnect.cc
--- ./gadap/src/gaConnect.cc 2009-02-06 06:10:15.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/gadap/src/gaConnect.cc 2011-11-26 16:15:02.920489385 +0000
@@ -15,7 +15,7 @@
#include "gaConnect.h"
#include "gaUtils.h"
#include "DataDDS.h"
-
+#include <string.h>
#include <cstdlib>
#include <iostream>
#include <strstream>
diff -aur ./gadap/src/gadap.cc ../../supplibs-2.2.0-new/src/gadap/src/gadap.cc
--- ./gadap/src/gadap.cc 2009-02-06 06:10:15.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/gadap/src/gadap.cc 2011-11-26 16:15:02.921489446 +0000
@@ -20,7 +20,7 @@
#include "Connections.cc"
#include <vector>
-
+#include <string.h>
/** Static data */
// List of open datasets
diff -aur ./gadap/src/gaReports.cc ../../supplibs-2.2.0-new/src/gadap/src/gaReports.cc
--- ./gadap/src/gaReports.cc 2009-02-06 06:10:15.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/gadap/src/gaReports.cc 2011-11-26 16:15:02.921489446 +0000
@@ -12,6 +12,7 @@
*/
#include <iostream>
+#include <string.h>
#include "gaReports.h"
#include "gaUtils.h"
#include "Grid.h"
diff -aur ./gadap/test/test.cc ../../supplibs-2.2.0-new/src/gadap/test/test.cc
--- ./gadap/test/test.cc 2009-02-05 06:43:49.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/gadap/test/test.cc 2011-11-26 16:15:02.922489507 +0000
@@ -8,7 +8,8 @@
#include "gadap.h"
#include <iostream>
-#include <string>
+#include <string.h>
+#include <stdlib.h>
using namespace std;
diff -aur ./hdf5/hl/src/H5LTanalyze.c ../../supplibs-2.2.0-new/src/hdf5/hl/src/H5LTanalyze.c
--- ./hdf5/hl/src/H5LTanalyze.c 2009-02-05 04:28:13.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/hdf5/hl/src/H5LTanalyze.c 2011-11-26 16:15:02.923489568 +0000
@@ -2331,7 +2331,7 @@
int H5LTyyerror(char *msg)
{
- printf("ERROR: %s before \"%s\".\n", msg, yytext);
+ printf("ERROR: %s before \"%s\".\n", msg, yytext); return (1);
}
int yywrap()
diff -aur ./hdf5/test/dt_arith.c ../../supplibs-2.2.0-new/src/hdf5/test/dt_arith.c
--- ./hdf5/test/dt_arith.c 2010-05-13 23:54:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/hdf5/test/dt_arith.c 2011-11-26 16:15:02.926489751 +0000
@@ -3410,6 +3410,7 @@
else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
return 1;
#endif
+ return 0;
}
diff -aur ./hdf5/tools/h5dump/h5dump.c ../../supplibs-2.2.0-new/src/hdf5/tools/h5dump/h5dump.c
--- ./hdf5/tools/h5dump/h5dump.c 2010-05-13 23:54:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/hdf5/tools/h5dump/h5dump.c 2011-11-26 16:15:02.929489936 +0000
@@ -4518,7 +4518,7 @@
H5Eset_auto2(H5E_DEFAULT, func, edata);
- leave(d_status);
+ leave(d_status); exit (d_status); /* Never will reach exit() , but clever compilers needed this fake code */
}
/*-------------------------------------------------------------------------
diff -aur ./hdf5/tools/h5ls/h5ls.c ../../supplibs-2.2.0-new/src/hdf5/tools/h5ls/h5ls.c
--- ./hdf5/tools/h5ls/h5ls.c 2010-05-13 23:54:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/hdf5/tools/h5ls/h5ls.c 2011-11-26 16:15:02.932490119 +0000
@@ -2478,6 +2478,6 @@
HDfree(elink_list.objs);
} /* end while */
- leave(EXIT_SUCCESS);
+ leave(EXIT_SUCCESS); exit (EXIT_SUCCESS) ; /* never go to exit() but compiler needs it */
} /* end main() */
diff -aur ./hdf5/tools/h5stat/h5stat.c ../../supplibs-2.2.0-new/src/hdf5/tools/h5stat/h5stat.c
--- ./hdf5/tools/h5stat/h5stat.c 2010-05-13 23:54:51.000000000 +0000
+++ ../../supplibs-2.2.0-new/src/hdf5/tools/h5stat/h5stat.c 2011-11-26 16:15:02.933490180 +0000
@@ -1227,6 +1227,6 @@
leave(EXIT_FAILURE);
}
- leave(EXIT_SUCCESS);
+ leave(EXIT_SUCCESS); exit(EXIT_SUCCESS); /* exit() will never be reached, but compiler needs this fake code */
}