diff options
Diffstat (limited to 'math/asymptote/files/patch-xstream.h')
| -rw-r--r-- | math/asymptote/files/patch-xstream.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/math/asymptote/files/patch-xstream.h b/math/asymptote/files/patch-xstream.h index fb97b38e644d..362604ebb1e0 100644 --- a/math/asymptote/files/patch-xstream.h +++ b/math/asymptote/files/patch-xstream.h @@ -1,23 +1,11 @@ ---- xstream.h.orig 2018-06-10 15:14:47 UTC +--- xstream.h.orig 2020-08-06 02:32:59 UTC +++ xstream.h -@@ -31,7 +31,7 @@ - #define quad_t long long - #define u_quad_t unsigned long long - --#if defined(__CYGWIN__) || defined(__FreeBSD__) -+#if defined(__CYGWIN__) - #include <sys/select.h> - #define u_char unsigned char - #define u_int unsigned int -@@ -41,6 +41,11 @@ extern "C" int fseeko(FILE *, off_t, int +@@ -41,7 +41,7 @@ extern "C" int fseeko(FILE *, off_t, int); extern "C" off_t ftello(FILE *); - #endif + #endif -+#ifdef __FreeBSD__ -+#define xdr_longlong_t xdr_int64_t -+#define xdr_u_longlong_t xdr_u_int64_t -+#endif -+ - #ifdef _POSIX_SOURCE - #undef _POSIX_SOURCE - #include <rpc/rpc.h> +-#ifdef __APPLE__ ++if defined(__APPLE__) || defined(__FreeBSD__) + #include <rpc/xdr.h> + + inline bool_t xdr_long(XDR *__xdrs, long *__lp) { |
