mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-11 13:05:11 +02:00
25 lines
755 B
Diff
25 lines
755 B
Diff
The isnanf BSD extension was deprecated with the
|
|
introduction of isnan in c99 and isn't implemented in musl.
|
|
Use the isnan function instead.
|
|
|
|
--- a/jdk/src/solaris/native/common/jdk_util_md.h
|
|
+++ b/jdk/src/solaris/native/common/jdk_util_md.h
|
|
@@ -37,7 +37,7 @@
|
|
#define ISNAND(d) isnan(d)
|
|
#elif defined(__linux__) || defined(_ALLBSD_SOURCE)
|
|
#include <math.h>
|
|
-#define ISNANF(f) isnanf(f)
|
|
+#define ISNANF(f) isnan(f)
|
|
#define ISNAND(d) isnan(d)
|
|
#elif defined(_AIX)
|
|
#include <math.h>
|
|
--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
|
|
+++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
|
|
@@ -29,6 +29,7 @@
|
|
#include "jlong.h"
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <dlfcn.h>
|
|
#include <errno.h>
|