Skip to content

Commit

Permalink
Patch to fix missing sig_atomic_t issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mauzey1 committed Jun 24, 2024
1 parent 51febc8 commit 3e6bc21
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recipe/0002-Include-signal.h-to-support-sig_atomic_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From cf9c5c38b6896586568fc7e27db1bd222bd2b45a Mon Sep 17 00:00:00 2001
From: mauzey1 <[email protected]>
Date: Mon, 24 Jun 2024 11:28:05 -0700
Subject: [PATCH 2/2] Include signal.h to support sig_atomic_t

---
Src/_cmormodule.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/Src/_cmormodule.c b/Src/_cmormodule.c
index 744bb46..da1036a 100644
--- a/Src/_cmormodule.c
+++ b/Src/_cmormodule.c
@@ -1,4 +1,5 @@
#include <Python.h>
+#include <signal.h>
#define NPY_NO_DEPRECATED_API NPY_1_10_API_VERSION

#include "numpy/arrayobject.h"
--
2.39.2 (Apple Git-143)

1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source:
sha256: 5f5a44e660104916dd0a3d0d942234db375d2a4ffb4f4113ec88cfdd93f99ef4
patches:
- 0001-Replace-function-deprecated-in-numpy-2.0.patch
- 0002-Include-signal.h-to-support-sig_atomic_t.patch

build:
number: 1
Expand Down

0 comments on commit 3e6bc21

Please sign in to comment.