summaryrefslogtreecommitdiff
path: root/x11-toolkits/xview/files/patch-lib+libxview+notify+ntfyclient.c
blob: 4f206ce2ac117ec0e989f8621066294672750b68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- lib/libxview/notify/ntfyclient.c.orig	2012-02-03 16:47:24.025771621 -0800
+++ lib/libxview/notify/ntfyclient.c	2012-02-03 16:57:20.624935481 -0800
@@ -23,7 +23,15 @@
 /* Newsflash: As of libc-5.0.9, Linux has tsearch() & friends, so we define
  * HAVE_TSEARCH here.                  <martin-2.buck@student.uni-ulm.de>
  */
+
+/* XXX
+   XXX Previous version of the FreeBSD patch assumed FreeBSD had no
+   XXX tsearch() support or that it didn't work.
+   XXX
+   XXX */
+#ifdef __FreeBSD__
 #define HAVE_TSEARCH
+#endif
 
 #include <xview_private/ntfy.h>
 #include <xview_private/ndis.h>	/* For ndis_default_prioritizer */
@@ -103,7 +111,6 @@
            return (client);
        }
     }
-
     else 
 #endif
         /* Search entire list */