Fri Nov 25 21:53:26 2011 UTC ()
Fix build with newer GCC
(joerg)
diff -r1.4 -r1.5 pkgsrc/games/exult/distinfo
diff -r1.1 -r1.2 pkgsrc/games/exult/patches/patch-ac
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-actions.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-args.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-audio_xmidi.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-conf_Configuration.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-conf_xmain.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_Flex.h
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_IFF.h
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_Table.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_U7file.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_listfiles.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_msgfile.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-files_utils.h
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-imagewin_ibuf8.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-objs_chunkter.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-party.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-server_objserial.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-server_server.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-shapes_shapeinf.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-shapes_shapewrite.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-tools_cmanip.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-tools_splitshp.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_ucfun.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_uclex.ll
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_ucloc.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_ucmain.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_ucparse.yy
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_compiler_ucsym.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_ucmachine.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_ucxt_head2data.cc
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_ucxt_include_ops.h
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-usecode_useval.h
--- pkgsrc/games/exult/distinfo 2009/08/24 11:39:21 1.4
+++ pkgsrc/games/exult/distinfo 2011/11/25 21:53:25 1.5
| @@ -1,12 +1,43 @@ | | | @@ -1,12 +1,43 @@ |
1 | $NetBSD: distinfo,v 1.4 2009/08/24 11:39:21 obache Exp $ | | 1 | $NetBSD: distinfo,v 1.5 2011/11/25 21:53:25 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (exult-1.2.tar.gz) = 81f9d3d428c80990b8e970a4dee5c85a7236dace | | 3 | SHA1 (exult-1.2.tar.gz) = 81f9d3d428c80990b8e970a4dee5c85a7236dace |
4 | RMD160 (exult-1.2.tar.gz) = 339231edf84507f05115ab3189875cb15be9c04f | | 4 | RMD160 (exult-1.2.tar.gz) = 339231edf84507f05115ab3189875cb15be9c04f |
5 | Size (exult-1.2.tar.gz) = 1722259 bytes | | 5 | Size (exult-1.2.tar.gz) = 1722259 bytes |
6 | SHA1 (patch-aa) = 2acecb0c4e2da2769559d9603a08930c30b38c72 | | 6 | SHA1 (patch-aa) = 2acecb0c4e2da2769559d9603a08930c30b38c72 |
7 | SHA1 (patch-ab) = 039fd49b570ad5796a43d86fb679b517c4149f13 | | 7 | SHA1 (patch-ab) = 039fd49b570ad5796a43d86fb679b517c4149f13 |
8 | SHA1 (patch-ac) = f6a1c4961e62cd99f9f355d14631457d5d2b5458 | | 8 | SHA1 (patch-ac) = b92df8fa9c0663b8e37b25b7c3a59e5d58de051a |
| | | 9 | SHA1 (patch-actions.cc) = 3844af60c445e8b1c88a59815daf164012175d3b |
9 | SHA1 (patch-ad) = fbb34ab21468afd91caccc35354fbd23df800ca5 | | 10 | SHA1 (patch-ad) = fbb34ab21468afd91caccc35354fbd23df800ca5 |
10 | SHA1 (patch-ae) = 3b863379cef2948ff92e9971ffbc37d6b1b0276f | | 11 | SHA1 (patch-ae) = 3b863379cef2948ff92e9971ffbc37d6b1b0276f |
11 | SHA1 (patch-af) = 43b2369d9dff1fc1aa387c174b3fe7c3e467c2e8 | | 12 | SHA1 (patch-af) = 43b2369d9dff1fc1aa387c174b3fe7c3e467c2e8 |
12 | SHA1 (patch-ag) = 2c8b385bb2346f0e7d11bd8e721a901ec361bb61 | | 13 | SHA1 (patch-ag) = 2c8b385bb2346f0e7d11bd8e721a901ec361bb61 |
| | | 14 | SHA1 (patch-args.cc) = a6f66039c7fdf1396000078b1c28927c0cd0d5e0 |
| | | 15 | SHA1 (patch-audio_xmidi.cc) = 4b7944fad3fbc3685f0a3edbff013a03feff3f10 |
| | | 16 | SHA1 (patch-conf_Configuration.cc) = 4c49e9b3ee2f66d77fab32e8cb25c8bf3ac05c3e |
| | | 17 | SHA1 (patch-conf_xmain.cc) = e1bc9f77f9642390795d2d8183578f508027a127 |
| | | 18 | SHA1 (patch-files_Flex.h) = 67c971321cab01286f7398d72274cc575fc39172 |
| | | 19 | SHA1 (patch-files_IFF.h) = 9dea7c166ebe48c8843be6a0114cb993e18dffb6 |
| | | 20 | SHA1 (patch-files_Table.cc) = b4379ee2be657c158c0b7d750ac1417d8343ab0a |
| | | 21 | SHA1 (patch-files_U7file.cc) = 2147ee8cc5ead5cb06a9823cfb380006ae06a4ba |
| | | 22 | SHA1 (patch-files_listfiles.cc) = 3c7ebeba5d64f3c9f758406c1b944e3a289a245e |
| | | 23 | SHA1 (patch-files_msgfile.cc) = 8219ffe692b79cad2f9db19adc1e0591d404f315 |
| | | 24 | SHA1 (patch-files_utils.h) = d170f0afa05f7fb71166c7c01dd6d713411dd680 |
| | | 25 | SHA1 (patch-imagewin_ibuf8.cc) = d1172573e542e5d0f280049a6c31765005974dcd |
| | | 26 | SHA1 (patch-objs_chunkter.cc) = d20c70fae5b61246defe26095113c85b62f9bf32 |
| | | 27 | SHA1 (patch-party.cc) = e0bba8a1ca0638cc885b2c6363d316feffe5c11b |
| | | 28 | SHA1 (patch-server_objserial.cc) = 213b455a213ce538027d2501494c175ebe6dd9c5 |
| | | 29 | SHA1 (patch-server_server.cc) = 0bdd9e268fe7c87eb5e7abac783bc3c62514af28 |
| | | 30 | SHA1 (patch-shapes_shapeinf.cc) = a62f192f989c4be0d5d757dc74a5e268216c5a01 |
| | | 31 | SHA1 (patch-shapes_shapewrite.cc) = 30e33617e5f42b7794b523da1ac5817751f68fc6 |
| | | 32 | SHA1 (patch-tools_cmanip.cc) = 3bb7231dc1a4bddf430222888b7d83893b9efd1f |
| | | 33 | SHA1 (patch-tools_splitshp.cc) = 1eb810b609c5ae5b0b4cae5e043e376c0d6ebd84 |
| | | 34 | SHA1 (patch-usecode_compiler_ucfun.cc) = aa7d0248b46685c1af42d1114a8f92637bab6b6d |
| | | 35 | SHA1 (patch-usecode_compiler_uclex.ll) = 791e55539ebd09011ee5024f6f576bc3a50f87ab |
| | | 36 | SHA1 (patch-usecode_compiler_ucloc.cc) = 0ad6e6e96db7e02cbda9ede04824978ba824ed00 |
| | | 37 | SHA1 (patch-usecode_compiler_ucmain.cc) = fa35d5d6083d8ffc21d80733c0c9be1c7568bdab |
| | | 38 | SHA1 (patch-usecode_compiler_ucparse.yy) = 6a645e9001722ce6665d24933853982ed20d7c05 |
| | | 39 | SHA1 (patch-usecode_compiler_ucsym.cc) = a68b476a9aa1362051176ad4de5352b6ce610f55 |
| | | 40 | SHA1 (patch-usecode_ucmachine.cc) = 01db5ff3f6d9c23271dfbd15c50e1c78d9af28a1 |
| | | 41 | SHA1 (patch-usecode_ucxt_head2data.cc) = 1bb92845f2c7b2368ca6849031e0c9d35affc7e5 |
| | | 42 | SHA1 (patch-usecode_ucxt_include_ops.h) = aca520d3b8d0d72ae918935f11f164ca0e633a81 |
| | | 43 | SHA1 (patch-usecode_useval.h) = 101dfb391a00bd99bbdacd4f71f6b22b9c38a214 |
--- pkgsrc/games/exult/patches/Attic/patch-ac 2008/07/27 20:14:14 1.1
+++ pkgsrc/games/exult/patches/Attic/patch-ac 2011/11/25 21:53:26 1.2
| @@ -1,22 +1,29 @@ | | | @@ -1,22 +1,29 @@ |
1 | $NetBSD: patch-ac,v 1.1 2008/07/27 20:14:14 dholland Exp $ | | 1 | $NetBSD: patch-ac,v 1.2 2011/11/25 21:53:26 joerg Exp $ |
2 | | | 2 | |
3 | --- hash_utils.h~ 2003-08-31 13:32:24.000000000 -0400 | | 3 | --- hash_utils.h.orig 2003-08-31 17:32:24.000000000 +0000 |
4 | +++ hash_utils.h 2008-07-27 13:37:43.000000000 -0400 | | 4 | +++ hash_utils.h |
5 | @@ -26,7 +26,7 @@ | | 5 | @@ -20,13 +20,14 @@ |
| | | 6 | #define _HASH_UTILS_H_ |
| | | 7 | |
| | | 8 | #include "exult_types.h" |
| | | 9 | +#include <cstring> |
| | | 10 | |
| | | 11 | #ifdef DONT_HAVE_HASH_MAP |
| | | 12 | # include <map> |
6 | #else | | 13 | #else |
7 | #if HAVE_EXT_HASH_MAP | | 14 | #if HAVE_EXT_HASH_MAP |
8 | # include <ext/hash_map> | | 15 | # include <ext/hash_map> |
9 | -# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) | | 16 | -# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) |
10 | +# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3) | | 17 | +# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3) |
11 | using __gnu_cxx::hash_map; | | 18 | using __gnu_cxx::hash_map; |
12 | # else | | 19 | # else |
13 | using std::hash_map; | | 20 | using std::hash_map; |
14 | @@ -44,7 +44,7 @@ | | 21 | @@ -44,7 +45,7 @@ using std::hash_map; |
15 | #else | | 22 | #else |
16 | #if HAVE_EXT_HASH_SET | | 23 | #if HAVE_EXT_HASH_SET |
17 | # include <ext/hash_set> | | 24 | # include <ext/hash_set> |
18 | -# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) | | 25 | -# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) |
19 | +# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3) | | 26 | +# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3) |
20 | using __gnu_cxx::hash_set; | | 27 | using __gnu_cxx::hash_set; |
21 | # else | | 28 | # else |
22 | using std::hash_set; | | 29 | using std::hash_set; |
$NetBSD: patch-actions.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- actions.cc.orig 2011-11-25 18:01:36.000000000 +0000
+++ actions.cc
@@ -21,6 +21,8 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+#include <cstring>
+#include <cstdlib>
#include "gamewin.h"
#include "actions.h"
$NetBSD: patch-args.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- args.cc.orig 2011-11-25 18:02:23.000000000 +0000
+++ args.cc
@@ -24,6 +24,7 @@
# include <iostream>
#endif
+#include <cstdlib>
#include "args.h"
#ifndef UNDER_CE
$NetBSD: patch-audio_xmidi.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- audio/xmidi.cc.orig 2011-11-25 17:44:45.000000000 +0000
+++ audio/xmidi.cc
@@ -26,6 +26,7 @@
#ifndef ALPHA_LINUX_CXX
# include <cassert>
# include <cstdio>
+# include <cstdlib>
# include <cmath>
# include <iostream>
# include <cmath>
$NetBSD: patch-conf_Configuration.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- conf/Configuration.cc.orig 2011-11-25 17:32:44.000000000 +0000
+++ conf/Configuration.cc
@@ -28,6 +28,7 @@
#ifndef ALPHA_LINUX_CXX
# include <cassert>
# include <cstdio>
+# include <cstdlib>
#endif
#include <stdio.h>
#include <iostream>
$NetBSD: patch-conf_xmain.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- conf/xmain.cc.orig 2011-11-25 17:33:59.000000000 +0000
+++ conf/xmain.cc
@@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include "Configuration.h"
#include <iostream>
#include <string>
+#include <cstring>
#include <cassert>
#include "common_types.h"
$NetBSD: patch-files_Flex.h,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/Flex.h.orig 2011-11-25 17:26:18.000000000 +0000
+++ files/Flex.h
@@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <vector>
#include <string>
#include <iosfwd>
+#include <cstring>
#include "common_types.h"
#include "U7file.h"
$NetBSD: patch-files_IFF.h,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/IFF.h.orig 2011-11-25 17:27:16.000000000 +0000
+++ files/IFF.h
@@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <vector>
#include <string>
+#include <cstring>
#include "common_types.h"
#include "U7file.h"
$NetBSD: patch-files_Table.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/Table.cc.orig 2011-11-25 17:26:41.000000000 +0000
+++ files/Table.cc
@@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suit
#endif
#include <iostream>
#include "exceptions.h"
+#include <cstdlib>
#include "utils.h"
using std::string;
$NetBSD: patch-files_U7file.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/U7file.cc.orig 2011-11-25 17:28:14.000000000 +0000
+++ files/U7file.cc
@@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suit
# include <cstdio>
#endif
#include <iostream>
+#include <cstdlib>
#include "U7file.h"
#include "Flex.h"
$NetBSD: patch-files_listfiles.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/listfiles.cc.orig 2011-11-25 17:29:04.000000000 +0000
+++ files/listfiles.cc
@@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suit
# include <cstdlib>
# include <cctype>
# include <cstdio>
+# include <cstring>
#endif
#include <vector>
$NetBSD: patch-files_msgfile.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/msgfile.cc.orig 2011-11-25 17:32:19.000000000 +0000
+++ files/msgfile.cc
@@ -24,6 +24,7 @@
#include <iostream>
#include <vector>
+#include <cstdlib>
#include "utils.h"
using std::istream;
$NetBSD: patch-files_utils.h,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- files/utils.h.orig 2011-11-25 17:29:26.000000000 +0000
+++ files/utils.h
@@ -22,6 +22,7 @@
#ifndef _UTILS_H_
#define _UTILS_H_
+#include <cstdio>
#include <iostream>
#include <string>
#ifndef ALPHA_LINUX_CXX
@@ -70,7 +71,6 @@ inline uint16 Read2
return (b0 | (b1 << 8));
}
-#ifdef BUFSIZ /* Kludgy, but I don't want to include stdio.h all the time.*/
/*
* Read a 2-byte value from a file.
*/
@@ -85,7 +85,6 @@ inline uint16 Read2
std::fread(&b1,sizeof(uint8),1,in);
return (b0 | (b1 << 8));
}
-#endif
/*
* Read a 2-byte value, hsb first.
@@ -113,7 +112,6 @@ inline uint16 Read2high
return ((b0 << 8) | b1);
}
-#ifdef BUFSIZ /* Kludgy, but I don't want to include stdio.h all the time.*/
/*
* Read a 2-byte value from a file.
*/
@@ -128,7 +126,6 @@ inline uint16 Read2high
std::fread(&b1,sizeof(uint8),1,in);
return ((b0 << 8) | b1);
}
-#endif
/*
* Read a 4-byte long value, lsb first.
@@ -160,7 +157,6 @@ inline uint32 Read4
return (b0 | (b1<<8) | (b2<<16) | (b3<<24));
}
-#ifdef BUFSIZ /* Kludgy, but I don't want to include stdio.h all the time.*/
/*
* Read a 4-byte value from a file.
*/
@@ -177,7 +173,6 @@ inline uint32 Read4
std::fread(&b3,sizeof(uint8),1,in);
return (b0 | (b1<<8) | (b2<<16) | (b3<<24));
}
-#endif
/*
* Read a 4-byte long value, hsb first.
*/
@@ -208,7 +203,6 @@ inline uint32 Read4high
return ((b0<<24) | (b1<<16) | (b2<<8) | b3);
}
-#ifdef BUFSIZ /* Kludgy, but I don't want to include stdio.h all the time.*/
/*
* Read a 4-byte value from a file.
*/
@@ -225,7 +219,6 @@ inline uint32 Read4high
std::fread(&b3,sizeof(uint8),1,in);
return ((b0<<24) | (b1<<16) | (b2<<8) | b3);
}
-#endif
/*
* Write a 1-byte value.
$NetBSD: patch-imagewin_ibuf8.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- imagewin/ibuf8.cc.orig 2011-11-25 17:36:29.000000000 +0000
+++ imagewin/ibuf8.cc
@@ -25,6 +25,8 @@
#include "ibuf8.h"
#ifndef ALPHA_LINUX_CXX
+# include <cstring>
+# include <cstdlib>
# include <string>
# include <iostream>
#endif
$NetBSD: patch-objs_chunkter.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- objs/chunkter.cc.orig 2011-11-25 17:56:42.000000000 +0000
+++ objs/chunkter.cc
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suit
#ifdef INCL_OPENGL
#include "glshape.h"
#endif
+#include <cstring>
Chunk_terrain *Chunk_terrain::render_queue = 0;
int Chunk_terrain::queue_size = 0;
$NetBSD: patch-party.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- party.cc.orig 2011-11-25 18:04:22.000000000 +0000
+++ party.cc
@@ -25,6 +25,7 @@
#endif
#include <iostream>
+#include <cstring>
#include <string>
#include "party.h"
#include "actors.h"
$NetBSD: patch-server_objserial.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- server/objserial.cc.orig 2011-11-25 17:58:05.000000000 +0000
+++ server/objserial.cc
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include "objserial.h"
#include "servemsg.h"
#include <iostream>
+#include <cstring>
using std::cout;
using std::endl;
$NetBSD: patch-server_server.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- server/server.cc.orig 2011-11-25 18:01:01.000000000 +0000
+++ server/server.cc
@@ -45,6 +45,8 @@ Foundation, Inc., 59 Temple Place - Suit
#endif
#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#ifdef _AIX
#include <strings.h>
$NetBSD: patch-shapes_shapeinf.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- shapes/shapeinf.cc.orig 2011-11-25 17:35:12.000000000 +0000
+++ shapes/shapeinf.cc
@@ -32,6 +32,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include "utils.h"
#include <iomanip> /* Debugging */
+#include <cstring>
using std::cout;
using std::endl;
$NetBSD: patch-shapes_shapewrite.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- shapes/shapewrite.cc.orig 2011-11-25 17:35:49.000000000 +0000
+++ shapes/shapewrite.cc
@@ -24,6 +24,7 @@
# include <config.h>
#endif
+#include <cstring>
#include "shapevga.h"
#include "shapeinf.h"
#include "monstinf.h"
$NetBSD: patch-tools_cmanip.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- tools/cmanip.cc.orig 2011-11-25 17:39:15.000000000 +0000
+++ tools/cmanip.cc
@@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suit
#ifndef ALPHA_LINUX_CXX
# include <cstdio>
+# include <cstdlib>
#endif
#include "Configuration.h"
#include <iostream>
$NetBSD: patch-tools_splitshp.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- tools/splitshp.cc.orig 2011-11-25 17:38:30.000000000 +0000
+++ tools/splitshp.cc
@@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suit
#ifndef ALPHA_LINUX_CXX
# include <cstdio>
+# include <cstdlib>
# include <cstring>
# include <string>
#endif
$NetBSD: patch-usecode_compiler_ucfun.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/ucfun.cc.orig 2011-11-25 17:50:25.000000000 +0000
+++ usecode/compiler/ucfun.cc
@@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <stdio.h>
#include <cassert>
+#include <cstring>
#include "ucfun.h"
#include "ucstmt.h"
#include "utils.h"
$NetBSD: patch-usecode_compiler_uclex.ll,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/uclex.ll.orig 2011-11-25 17:49:15.000000000 +0000
+++ usecode/compiler/uclex.ll
@@ -23,6 +23,7 @@ along with this program; if not, write t
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <cstring>
#include <string>
#include <vector>
#include "ucparse.h"
$NetBSD: patch-usecode_compiler_ucloc.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/ucloc.cc.orig 2011-11-25 17:50:54.000000000 +0000
+++ usecode/compiler/ucloc.cc
@@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suit
#endif
#include <iostream>
+#include <cstring>
#include "ucloc.h"
using std::strcmp;
$NetBSD: patch-usecode_compiler_ucmain.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/ucmain.cc.orig 2011-11-25 17:49:32.000000000 +0000
+++ usecode/compiler/ucmain.cc
@@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <fstream>
#include <unistd.h>
#include <stdio.h>
+#include <cstring>
#include <string>
#include <vector>
#include "ucloc.h"
$NetBSD: patch-usecode_compiler_ucparse.yy,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/ucparse.yy.orig 2011-11-25 17:48:55.000000000 +0000
+++ usecode/compiler/ucparse.yy
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
+#include <cstring>
#include <vector>
#include "ucfun.h"
$NetBSD: patch-usecode_compiler_ucsym.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/compiler/ucsym.cc.orig 2011-11-25 17:51:14.000000000 +0000
+++ usecode/compiler/ucsym.cc
@@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suit
#endif
+#include <cstring>
#include <stdio.h>
#include "ucsym.h"
#include "opcodes.h"
$NetBSD: patch-usecode_ucmachine.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/ucmachine.cc.orig 2011-11-25 17:54:27.000000000 +0000
+++ usecode/ucmachine.cc
@@ -23,6 +23,7 @@
# include <config.h>
#endif
+#include <cstring>
#include "ucmachine.h"
#include "keyring.h"
#include "conversation.h"
$NetBSD: patch-usecode_ucxt_head2data.cc,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/ucxt/head2data.cc.orig 2011-11-25 17:51:52.000000000 +0000
+++ usecode/ucxt/head2data.cc
@@ -8,6 +8,7 @@
#include <iomanip>
#include <vector>
#include <fstream>
+#include <cstdlib>
using std::cout;
using std::cerr;
$NetBSD: patch-usecode_ucxt_include_ops.h,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/ucxt/include/ops.h.orig 2011-11-25 17:52:40.000000000 +0000
+++ usecode/ucxt/include/ops.h
@@ -19,6 +19,7 @@
#ifndef OPCODES_H
#define OPCODES_H
+#include <cstdlib>
#include <map>
#include <string>
#include <vector>
$NetBSD: patch-usecode_useval.h,v 1.1 2011/11/25 21:53:26 joerg Exp $
--- usecode/useval.h.orig 2011-11-25 17:54:48.000000000 +0000
+++ usecode/useval.h
@@ -23,6 +23,7 @@
#define USEVAL_H 1
#include <cassert>
+#include <cstdlib>
#include <iostream>
#include <vector> // STL container