Skip to content

Commit

Permalink
sagemath: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Aug 22, 2023
1 parent debf929 commit 8e683cb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions srcpkgs/sagemath/patches/zzz-fix-giac-musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/src/sage/libs/giac/giac.pxd b/src/sage/libs/giac/giac.pxd
index 1d9da88d8d4..d4d5062fba5 100644
--- a/src/sage/libs/giac/giac.pxd
+++ b/src/sage/libs/giac/giac.pxd
@@ -12,6 +12,11 @@
from sage.libs.gmp.mpz cimport mpz_t, mpz_set
from libcpp.string cimport string

+cdef extern from *:
+ """
+ #define HAVE_TGAMMAF 1
+ """
+
cdef extern from "giac/giac.h" namespace "giac":
cdef cppclass context:
context()
diff --git a/src/sage/libs/giac/misc.h b/src/sage/libs/giac/misc.h
index bee90842f5b..516e31e5da2 100644
--- a/src/sage/libs/giac/misc.h
+++ b/src/sage/libs/giac/misc.h
@@ -1,5 +1,6 @@
#ifndef GIACPYMISC_H
#define GIACPYMISC_H
+#define HAVE_TGAMMAF 1
#include <giac/giac.h>

#include <fstream>

0 comments on commit 8e683cb

Please sign in to comment.