diff options
Diffstat (limited to 'media-gfx/xfig/files/xfig-3.2.5b-solaris.patch')
-rw-r--r-- | media-gfx/xfig/files/xfig-3.2.5b-solaris.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch b/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch new file mode 100644 index 000000000000..a295b5227f00 --- /dev/null +++ b/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch @@ -0,0 +1,26 @@ +* workaround some missing things on Solaris + +--- u_quartic.c ++++ u_quartic.c +@@ -21,4 +21,7 @@ + #include <math.h> + ++ #ifndef M_PI ++ # define M_PI 3.14159265358979323846 ++ #endif + + static int +--- w_intersect.c ++++ w_intersect.c +@@ -31,6 +31,11 @@ + #define ISET_P1 (1 << 0) + #define ISET_P2 (1 << 1) + ++#if defined (__SVR4) && defined (__sun) ++#undef _Complex_I ++#define _Complex_I (__extension__ 1.0fi) ++#endif ++ + intersect_state_e intersect_state = INTERSECT_INITIAL; + + static INLINE Boolean |