summaryrefslogtreecommitdiff
path: root/devel/py-gobject/patches/patch-configure
blob: 127f069c3ca585d4befe496cfb6271b6a4214469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-configure,v 1.2 2018/01/23 11:23:13 adam Exp $

Strengthen a configure test so it doesn't depend on -Werror.
This is not strictly necessary but makes it behave when using the
wrappers to manipulate warning flags.

--- configure.orig	2017-10-13 10:58:18.000000000 +0000
+++ configure
@@ -15506,8 +15506,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
 int
 main ()
 {
-PySignal_SetWakeupFd(0);
-  ;
+  int (*func)(int);
+  func = PySignal_SetWakeupFd;
+  func(0);
   return 0;
 }
 _ACEOF