$OpenBSD: patch-stlport_STLport-4_5_patch,v 1.6 2006/12/13 10:25:14 robert Exp $
--- stlport/STLport-4.5.patch.orig.port	Fri Dec  1 18:57:09 2006
+++ stlport/STLport-4.5.patch	Mon Dec 11 22:27:43 2006
@@ -115,6 +115,81 @@
   template class _STLP_CLASS_DECLSPEC __node_alloc<false,0>;
   template class _STLP_CLASS_DECLSPEC __node_alloc<true,0>;
   template class _STLP_CLASS_DECLSPEC __debug_alloc< __node_alloc<true,0> >;
+*** misc/STLport-4.5/src/gcc-3.0-openbsd.mak	2006-02-16 16:21:24.224363000 +0100
+--- misc/build/STLport-4.5/src/gcc-3.0-openbsd.mak	2006-02-16 16:18:28.228881000 +0100
+***************
+*** 1 ****
+! dummy
+--- 1,69 ----
+! #
+! # Note : this makefile is for gcc-3 !
+! #
+! 
+! #
+! # compiler
+! # take these from the OOo build environment
+! CC*= gcc 
+! CXX*= g++
+! 
+! #
+! # Basename for libraries
+! #
+! LIB_BASENAME = libstlport_gcc
+! 
+! #
+! # guts for common stuff
+! #
+! #
+! LINK=ar cr
+! DYN_LINK=${CXX} ${PTHREAD_LIBS} -fPIC -lstdc++ --fexceptions -shared -o
+! 
+! OBJEXT=o
+! DYNEXT=so
+! STEXT=a
+! RM=rm -rf
+! PATH_SEP=/
+! MKDIR=mkdir -p
+! COMP=GCC$(ARCH)
+! INSTALL_STEP = install_unix 
+! 
+! all:  all_dynamic all_static symbolic_links 
+! 
+! include common_macros.mak
+! 
+! WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized
+! 
+! CXXFLAGS_COMMON = ${PTHREAD_CFLAGS} -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} -fexceptions -ftemplate-depth-32 -I${STLPORT_DIR} ${WARNING_FLAGS} ${ARCH_FLAGS}
+! CFLAGS_COMMON = ${PTHREAD_CFLAGS} -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} -fexceptions -I${STLPORT_DIR} ${WARNING_FLAGS} ${ARCH_FLAGS}
+! 
+! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2 -fPIC
+! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fPIC
+! 
+! CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g -fPIC
+! CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
+! 
+! CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
+! CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
+! 
+! CFLAGS_RELEASE_static = $(CFLAGS_COMMON) -O2 -fPIC
+! CFLAGS_RELEASE_dynamic = $(CFLAGS_COMMON) -O2 -fPIC
+! 
+! CFLAGS_DEBUG_static = $(CFLAGS_COMMON) -g -fPIC
+! CFLAGS_DEBUG_dynamic = $(CFLAGS_COMMON) -g -fPIC
+! 
+! CFLAGS_STLDEBUG_static = $(CFLAGS_DEBUG_static) -D_STLP_DEBUG
+! CFLAGS_STLDEBUG_dynamic = $(CFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
+! 
+! include common_percent_rules.mak
+! include common_rules.mak
+! 
+! 
+! #install: all
+! #	cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
+! 
+! #%.s: %.cpp
+! #	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
+! 
+! 
 *** misc/STLport-4.5/src/gcc-3.0-freebsd.mak	2006-02-16 16:21:24.224363000 +0100
 --- misc/build/STLport-4.5/src/gcc-3.0-freebsd.mak	2006-02-16 16:18:28.228881000 +0100
 ***************
@@ -848,6 +923,118 @@
   # define _STLP_MUTEX_INITIALIZER
   # endif
   
+*** misc/STLport-4.5/stlport/stl/_config.h	Tue Sep  4 19:10:18 2001
+--- misc/build/STLport-4.5/stlport/stl/_config.h	Sat Apr 29 11:24:36 2006
+***************
+*** 162,168 ****
+  # endif
+  
+  /* Operating system recognition (basic) */
+! # if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__)
+  #  define _STLP_UNIX 1
+  #  if defined (__linux__) && ! defined (_STLP_USE_GLIBC)
+  #   define _STLP_USE_GLIBC 1
+--- 162,168 ----
+  # endif
+  
+  /* Operating system recognition (basic) */
+! # if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__) || defined(__OpenBSD__)
+  #  define _STLP_UNIX 1
+  #  if defined (__linux__) && ! defined (_STLP_USE_GLIBC)
+  #   define _STLP_USE_GLIBC 1
+*** misc/STLport-4.5/stlport/stl/_cwchar.h	Tue Sep  4 19:10:18 2001
+--- misc/build/STLport-4.5/stlport/stl/_cwchar.h	Sat Apr 29 11:22:03 2006
+***************
+*** 30,36 ****
+  # if !  defined (_STLP_NO_CWCHAR) && defined  (_STLP_USE_NEW_C_HEADERS)
+  #  include _STLP_NATIVE_CPP_C_HEADER(cwchar)
+  
+! # elif defined (__MRC__) || defined (__SC__) || defined (__BORLANDC__) || defined(__FreeBSD__) || (defined (__GNUC__) && defined (__APPLE__\
+  )) || defined (_STLP_NO_WCHAR_T)
+  
+  #  include _STLP_NATIVE_C_HEADER(stddef.h)
+--- 30,36 ----
+  # if !  defined (_STLP_NO_CWCHAR) && defined  (_STLP_USE_NEW_C_HEADERS)
+  #  include _STLP_NATIVE_CPP_C_HEADER(cwchar)
+  
+! # elif defined (__MRC__) || defined (__SC__) || defined (__BORLANDC__) || defined(__FreeBSD__) || defined(__OpenBSD__) || (defined (__GNUC__) && defined (__APPLE__\
+  )) || defined (_STLP_NO_WCHAR_T)
+  
+  #  include _STLP_NATIVE_C_HEADER(stddef.h)
+*** misc/STLport-4.5/stlport/stl/_stdio_file.h	Mon Mar 19 08:01:09 2001
+--- misc/build/STLport-4.5/stlport/stl/_stdio_file.h	Sat Apr 29 11:22:03 2006
+***************
+*** 154,160 ****
+  
+  # define _STLP_FILE_I_O_IDENTICAL
+  
+! #elif defined (__CYGWIN__) || defined(__FreeBSD__)  || defined(__NetBSD__) || ( defined(__GNUC__) && defined(__APPLE__) )
+  
+  # if 0
+  inline int   _FILE_fd(const FILE& __f) { return __f._file; }
+--- 154,160 ----
+  
+  # define _STLP_FILE_I_O_IDENTICAL
+  
+! #elif defined (__CYGWIN__) || defined(__FreeBSD__)  || defined(__NetBSD__) || defined(__OpenBSD__) || ( defined(__GNUC__) && defined(__APPLE__) )
+  
+  # if 0
+  inline int   _FILE_fd(const FILE& __f) { return __f._file; }
+*** misc/STLport-4.5/stlport/stl/c_locale.h	Thu May 31 05:24:41 2001
+--- misc/build/STLport-4.5/stlport/stl/c_locale.h	Sat Apr 29 11:22:49 2006
+***************
+*** 179,185 ****
+  # define _Locale_PRINT _CTYPE_R
+  # define _Locale_ALPHA _CTYPE_A
+  
+! # elif defined (__NetBSD__)
+   
+  # define _Locale_CNTRL _C
+  # define _Locale_UPPER _U
+--- 179,185 ----
+  # define _Locale_PRINT _CTYPE_R
+  # define _Locale_ALPHA _CTYPE_A
+  
+! # elif defined (__NetBSD__) || defined (__OpenBSD__)
+   
+  # define _Locale_CNTRL _C
+  # define _Locale_UPPER _U
+*** misc/STLport-4.5/src/num_put_float.cpp	Tue Sep  4 13:10:12 2001
+--- misc/build/STLport-4.5/src/num_put_float.cpp	Tue Oct 24 18:47:18 2006
+***************
+*** 219,225 ****
+  inline bool _Stl_is_inf(double x)        { return isinf(x); }
+  // inline bool _Stl_is_neg_inf(double x)    { return isinf(x) < 0; }  
+  inline bool _Stl_is_neg_inf(double x)    { return isinf(x) && x < 0; }
+! #elif defined(__unix) && !defined(__FreeBSD__)  && !defined(__NetBSD__) \
+        && !defined(__APPLE__)  && !defined(__DJGPP) && !defined(__osf__)
+  inline bool _Stl_is_nan_or_inf(double x) { return IsNANorINF(x); }
+  inline bool _Stl_is_inf(double x)        { return IsNANorINF(x) && IsINF(x); }
+--- 219,225 ----
+  inline bool _Stl_is_inf(double x)        { return isinf(x); }
+  // inline bool _Stl_is_neg_inf(double x)    { return isinf(x) < 0; }  
+  inline bool _Stl_is_neg_inf(double x)    { return isinf(x) && x < 0; }
+! #elif defined(__unix) && !defined(__FreeBSD__)  && !defined(__NetBSD__) && !defined(__OpenBSD__) \
+        && !defined(__APPLE__)  && !defined(__DJGPP) && !defined(__osf__)
+  inline bool _Stl_is_nan_or_inf(double x) { return IsNANorINF(x); }
+  inline bool _Stl_is_inf(double x)        { return IsNANorINF(x) && IsINF(x); }
+***************
+*** 343,349 ****
+    inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* buf)
+      { LOCK_CVT RETURN_CVT(fcvt, x, n, pt, sign, buf) }
+  # endif
+! #elif defined (__unix)  && !defined(__FreeBSD__)  && !defined(__NetBSD__) && !defined(__APPLE__)
+    inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
+      { return ecvt_r(x, n, pt, sign, buf); }
+    inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
+--- 343,349 ----
+    inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* buf)
+      { LOCK_CVT RETURN_CVT(fcvt, x, n, pt, sign, buf) }
+  # endif
+! #elif defined (__unix)  && !defined(__FreeBSD__)  && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
+    inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
+      { return ecvt_r(x, n, pt, sign, buf); }
+    inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
 *** misc/build/STLport-4.5/stlport/stl/_rope.h	Mon Aug  6 04:21:25 2001
 --- misc/modified/STLport-4.5/stlport/stl/_rope.h	Thu Jul 27 15:19:10 2006
 ***************
