freebsd-ports/graphics/xfractint/files/patch-common__soi.c
Pawel Pekala ca4a6cf153 - Update to version 20.04p12 [1]
- Project has new homepage [1]
- Port needs USE_XORG+=xft to compile now
- Use INSTALL_DATA and COPYTREE_SHARE macros instead of CP
  for proper file permissions
- Add desktop entry file

PR:             ports/165911 [1]
Submitted by:   Pedro Giffuni <giffunip@tutopia.com> [1]
Approved by:    maintainer [1]
Feature safe:	yes
2012-03-24 16:51:18 +00:00

20 lines
541 B
C

--- common/soi.c.orig 2011-05-07 15:36:36.000000000 -0500
+++ common/soi.c 2012-03-10 17:08:47.000000000 -0500
@@ -15,7 +15,7 @@
#include <string.h>
#ifdef __APPLE__
#include <malloc/malloc.h>
-#else
+#elif !defined(BIG_ANSI_C)
#include <malloc.h>
#endif
#include "port.h"
@@ -25,7 +25,7 @@
#define FABS(x) fabsl(x)
/* the following needs to be changed back to frexpl once the portability
issue has been addressed JCO */
-#ifndef XFRACT
+#ifndef __FreeBSD__
#define FREXP(x,y) frexpl(x,y)
#else
#define FREXP(x,y) frexp(x,y)