$OpenBSD: patch-sope-appserver_NGObjWeb_common_h,v 1.1 2013/10/19 09:48:23 sebastia Exp $

fix for build with libobjc2-1.7

--- sope-appserver/NGObjWeb/common.h.orig	Sun Oct 13 10:18:46 2013
+++ sope-appserver/NGObjWeb/common.h	Sun Oct 13 10:24:47 2013
@@ -51,11 +51,15 @@
 #include <NGExtensions/NGLogging.h>
 #include <NGStreams/NGStreams.h>
 
-#if NeXT_RUNTIME || APPLE_RUNTIME || (__GNU_LIBOBJC__ >= 20100911)
+#if (defined(__GNU_LIBOBJC__) && (__GNU_LIBOBJC__ >= 20100911)) || defined(APPLE_RUNTIME) || defined(__GNUSTEP_RUNTIME__)
 #  ifndef sel_get_name
 #    define sel_get_name(__XXX__)    sel_getName(__XXX__)
 #    define sel_get_any_uid(__XXX__) sel_getUid(__XXX__)
 #  endif
+#endif
+
+#if (defined(__GNU_LIBOBJC__) && (__GNU_LIBOBJC__ >= 20100911)) || defined(APPLE_RUNTIME) || defined(__GNUSTEP_RUNTIME__)
+#    define sel_get_uid(__XXX__)   sel_getUid(__XXX__);
 #endif
 
 #define IS_DEPRECATED \
