8206106: [solaris sparc] jck tests api/javax_print/PrintService failing
Reviewed-by: simonis, erikj
This commit is contained in:
parent
a62b057397
commit
e9c8e369b7
@ -29,6 +29,16 @@
|
||||
#include <dlfcn.h>
|
||||
#include <cups/cups.h>
|
||||
#include <cups/ppd.h>
|
||||
/*
|
||||
* CUPS #define's __attribute__(x) to be empty unless __GNUC__ is defined.
|
||||
* However OpenJDK officially uses the SunStudio compiler on Solaris.
|
||||
* We need to #undef this else it breaks use of this keyword used by JNIEXPORT.
|
||||
* See: https://github.com/apple/cups/issues/5349
|
||||
*/
|
||||
#ifdef __SUNPRO_C
|
||||
#undef __attribute__
|
||||
#endif
|
||||
|
||||
|
||||
//#define CUPS_DEBUG
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user