* Patches for two header files to adjust path fragments in #include

statements for NetBSD
* __unix is not any longer defined in new-toolchain gcc's so add __NetBSD__
   to make it compile again

Bumped version number as a package without the first fix may break other ones.
This commit is contained in:
mrauch 2002-01-08 21:14:25 +00:00
parent 7179599f73
commit 1b3fcad130
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- stlport/typeinfo.orig Sat Nov 10 19:38:11 2001
+++ stlport/typeinfo Sat Nov 10 19:39:12 2001
@@ -23,7 +23,9 @@
# ifndef __STL_NO_TYPEINFO
-# if defined (__GNUC__) && (__GNUC_MINOR__ > 7)
+# if defined (__NetBSD__)
+# include <g++/typeinfo>
+# elif defined (__GNUC__) && (__GNUC_MINOR__ > 7)
# include <../include/typeinfo>
# elif defined (__STL_NO_NEW_NEW_HEADER)
# include __STL_NATIVE_HEADER(typeinfo.h)

View file

@ -0,0 +1,11 @@
--- stlport/stl/_config.h.orig Sat Nov 10 19:51:04 2001
+++ stlport/stl/_config.h Sat Nov 10 19:51:28 2001
@@ -174,7 +174,7 @@
# endif
/* Operating system recognition (basic) */
-# if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)
+# if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX) || defined(__NetBSD__)
# define __STL_UNIX 1
# if defined (__linux__) && ! defined (__STL_USE_GLIBC)
# define __STL_USE_GLIBC 1

View file

@ -0,0 +1,15 @@
$NetBSD: patch-ai,v 1.1 2002/01/08 21:14:26 mrauch Exp $
--- stlport/new.h.orig Tue Dec 25 11:31:27 2001
+++ stlport/new.h
@@ -22,7 +22,9 @@
# endif
# ifndef __STL_WINCE
-# if ( defined (__GNUC__) && (__GNUC_MINOR__ >= 8 )) || ( defined (__MVS__) && ! defined (__GNUC__))
+# if defined(__NetBSD__)
+# include <g++/new.h>
+# elif ( defined (__GNUC__) && (__GNUC_MINOR__ >= 8 )) || ( defined (__MVS__) && ! defined (__GNUC__))
# include __STL_NATIVE_C_HEADER(new.h)
# elif defined (__BORLANDC__)
# include <new.>