summaryrefslogtreecommitdiff
path: root/lang/python26/patches/patch-az
blob: f46031899580a17ec7a37b701ea48d7daea54e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-az,v 1.1 2011/09/12 20:14:06 bsiegert Exp $

--- Modules/selectmodule.c.orig	Mon Jul 25 08:09:14 2011
+++ Modules/selectmodule.c
@@ -1824,7 +1824,9 @@ initselect(void)
     PyModule_AddIntConstant(m, "KQ_FILTER_NETDEV", EVFILT_NETDEV);
 #endif
     PyModule_AddIntConstant(m, "KQ_FILTER_SIGNAL", EVFILT_SIGNAL);
+#ifdef EVFILT_TIMER
     PyModule_AddIntConstant(m, "KQ_FILTER_TIMER", EVFILT_TIMER);
+#endif
 
     /* event flags */
     PyModule_AddIntConstant(m, "KQ_EV_ADD", EV_ADD);