$OpenBSD: patch-odk_setsdkenv_unix_csh_in,v 1.5 2008/04/28 11:18:46 robert Exp $
--- odk/setsdkenv_unix.csh.in.orig.port	Fri Jan 18 20:10:08 2008
+++ odk/setsdkenv_unix.csh.in	Wed Apr 23 15:24:06 2008
@@ -178,6 +178,31 @@ switch (`${sdkdir}/config.guess | cut -d"-" -f3,4`)
     else	
 	setenv PTHREAD_LIBS -pthread
     endif
+    
+  case "openbsd*":
+    if ( $?OO_SDK_CPP_HOME == 0) then
+        set sdk_gxx_include_path=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+        setenv SDK_GXX_INCLUDE_PATH ${sdk_gxx_include_path}
+    endif
+
+    set directoryname=openbsd   
+    set comid=gcc3
+    set pltfrm=gcc
+    set soext=so
+    set exampleout=OPENBSDexample.out
+    set platform=OpenBSD
+
+    # set LD_LIBRARY_PATH
+    if ( $?LD_LIBARY_PATH == 0) then
+        setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.
+    else
+        setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH}
+    endif
+
+    setenv PTHREAD_CFLAGS "-pthread -D_THREAD_SAFE"
+    setenv PTHREAD_LIBS -pthread
+    
+    endif
   breaksw
 endsw
 
