$OpenBSD$

fix build with clang/llvm

--- sope-core/EOControl/EOSortOrdering.h.orig	Fri Oct  7 10:30:30 2011
+++ sope-core/EOControl/EOSortOrdering.h	Fri Oct  7 10:30:44 2011
@@ -28,20 +28,10 @@
 
 @class NSDictionary, NSString;
 
-#if NeXT_RUNTIME || APPLE_RUNTIME
 #define EOCompareAscending  @selector(compareAscending:)
 #define EOCompareDescending @selector(compareDescending:)
 #define EOCompareCaseInsensitiveAscending  @selector(compareCaseInsensitiveAscending:)
 #define EOCompareCaseInsensitiveDescending @selector(compareCaseInsensitiveDescending:)
-#else
-#  ifdef __APPLE__
-#    warning did you define the proper runtime ? (eg APPLE_RUNTIME)
-#  endif
-EOControl_EXPORT SEL EOCompareAscending;
-EOControl_EXPORT SEL EOCompareDescending;
-EOControl_EXPORT SEL EOCompareCaseInsensitiveAscending;
-EOControl_EXPORT SEL EOCompareCaseInsensitiveDescending;
-#endif
 
 @interface EOSortOrdering : NSObject < EOKeyValueArchiving >
 {
$OpenBSD$

fix build with clang/libobjc2
and remove deprecation warning

--- sope-core/EOControl/EOSortOrdering.m.orig	Wed Oct  5 14:15:31 2011
+++ sope-core/EOControl/EOSortOrdering.m	Fri Oct  7 10:31:09 2011
@@ -30,21 +30,10 @@
 
 #ifndef SEL_EQ
 #  if GNU_RUNTIME
-#    define SEL_EQ(sel1,sel2) sel_eq(sel1,sel2)
+#    define SEL_EQ(sel1,sel2) sel_isEqual(sel1,sel2)
 #  else
 #    define SEL_EQ(sel1,sel2) (sel1 == sel2)
 #  endif
-#endif
-
-#if !NeXT_RUNTIME
-EOControl_DECLARE SEL EOCompareAscending                 = 
-  @selector(compareAscending:);
-EOControl_DECLARE SEL EOCompareDescending                = 
-  @selector(compareDescending:);
-EOControl_DECLARE SEL EOCompareCaseInsensitiveAscending  =
-  @selector(compareCaseInsensitiveAscending:);
-EOControl_DECLARE SEL EOCompareCaseInsensitiveDescending = 
-  @selector(compareCaseInsensitiveDescending:);
 #endif
 
 @implementation EOSortOrdering
