Skip to content

Commit 3981297

Browse files
committedJun 12, 2023
8309703: AIX build fails after JDK-8280982
Reviewed-by: mdoerr, clanger, azvegint
1 parent 16c3d53 commit 3981297

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ static struct PwLoopData pw = {0};
4949
jclass tokenStorageClass = NULL;
5050
jmethodID storeTokenMethodID = NULL;
5151

52+
#if defined(AIX) && defined(__open_xl_version__) && __open_xl_version__ >= 17
53+
#pragma GCC diagnostic push
54+
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
55+
#endif
56+
5257
inline void debug_screencast(
5358
const char *__restrict fmt,
5459
...

‎src/java.desktop/unix/native/libpipewire/include/spa/param/audio/raw.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ extern "C" {
1111

1212
#include <stdint.h>
1313

14-
#if !defined(__FreeBSD__) && !defined(__MidnightBSD__)
14+
#if !defined(__FreeBSD__) && !defined(__MidnightBSD__) && !defined(AIX)
1515
#include <endian.h>
1616
#endif
1717

18+
#if defined(AIX)
19+
#include <sys/machine.h>
20+
#define __BIG_ENDIAN BIG_ENDIAN
21+
#define __BYTE_ORDER BIG_ENDIAN
22+
#endif
23+
1824
/**
1925
* \addtogroup spa_param
2026
* \{

0 commit comments

Comments
 (0)
Please sign in to comment.