tweaks for AIX
This commit is contained in:
@@ -28,6 +28,12 @@
|
|||||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||||
#include "precompiled_vcl.hxx"
|
#include "precompiled_vcl.hxx"
|
||||||
|
|
||||||
|
#ifdef AIX
|
||||||
|
#define _LINUX_SOURCE_COMPAT
|
||||||
|
#include <sys/timer.h>
|
||||||
|
#undef _LINUX_SOURCE_COMPAT
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <com/sun/star/accessibility/TextSegment.hpp>
|
#include <com/sun/star/accessibility/TextSegment.hpp>
|
||||||
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
||||||
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
||||||
|
@@ -1092,7 +1092,7 @@ TabStopList2String( const uno::Any& rAny, bool default_tabs )
|
|||||||
if( ret )
|
if( ret )
|
||||||
{
|
{
|
||||||
gchar * old_tab_str = ret;
|
gchar * old_tab_str = ret;
|
||||||
ret = g_strconcat(old_tab_str, " ", tab_str, NULL /* terminated */);
|
ret = g_strconcat(old_tab_str, " ", tab_str, (const char*)NULL);
|
||||||
g_free( old_tab_str );
|
g_free( old_tab_str );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -28,6 +28,12 @@
|
|||||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||||
#include "precompiled_vcl.hxx"
|
#include "precompiled_vcl.hxx"
|
||||||
|
|
||||||
|
#ifdef AIX
|
||||||
|
#define _LINUX_SOURCE_COMPAT
|
||||||
|
#include <sys/timer.h>
|
||||||
|
#undef _LINUX_SOURCE_COMPAT
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
|
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
|
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
|
||||||
|
@@ -28,6 +28,12 @@
|
|||||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||||
#include "precompiled_vcl.hxx"
|
#include "precompiled_vcl.hxx"
|
||||||
|
|
||||||
|
#ifdef AIX
|
||||||
|
#define _LINUX_SOURCE_COMPAT
|
||||||
|
#include <sys/timer.h>
|
||||||
|
#undef _LINUX_SOURCE_COMPAT
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <svunx.h>
|
#include <svunx.h>
|
||||||
#include <vcl/svdata.hxx>
|
#include <vcl/svdata.hxx>
|
||||||
#include <vcl/window.hxx>
|
#include <vcl/window.hxx>
|
||||||
|
@@ -28,6 +28,12 @@
|
|||||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||||
#include "precompiled_vcl.hxx"
|
#include "precompiled_vcl.hxx"
|
||||||
|
|
||||||
|
#ifdef AIX
|
||||||
|
#define _LINUX_SOURCE_COMPAT
|
||||||
|
#include <sys/timer.h>
|
||||||
|
#undef _LINUX_SOURCE_COMPAT
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <plugins/gtk/gtkobject.hxx>
|
#include <plugins/gtk/gtkobject.hxx>
|
||||||
#include <plugins/gtk/gtkframe.hxx>
|
#include <plugins/gtk/gtkframe.hxx>
|
||||||
#include <plugins/gtk/gtkdata.hxx>
|
#include <plugins/gtk/gtkdata.hxx>
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
// MARKER(update_precomp.py): autogen include statement, do not remove
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
||||||
#include "precompiled_vcl.hxx"
|
#include "precompiled_vcl.hxx"
|
||||||
|
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
#include <tools/prex.h>
|
#include <tools/prex.h>
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
#include <tools/postx.h>
|
#include <tools/postx.h>
|
||||||
@@ -601,7 +601,7 @@ const char* SalDisplay::GetKeyboardName( bool bRefresh )
|
|||||||
{
|
{
|
||||||
if( bRefresh || ! m_aKeyboardName.Len() )
|
if( bRefresh || ! m_aKeyboardName.Len() )
|
||||||
{
|
{
|
||||||
#ifdef SOLARIS
|
#if defined(SOLARIS)
|
||||||
if( IsLocal() )
|
if( IsLocal() )
|
||||||
{
|
{
|
||||||
int kbd = open( "/dev/kbd", O_RDONLY );
|
int kbd = open( "/dev/kbd", O_RDONLY );
|
||||||
@@ -640,7 +640,7 @@ const char* SalDisplay::GetKeyboardName( bool bRefresh )
|
|||||||
close(kbd);
|
close(kbd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#elif !defined(AIX)
|
||||||
int opcode, event, error;
|
int opcode, event, error;
|
||||||
int major = XkbMajorVersion, minor = XkbMinorVersion;
|
int major = XkbMajorVersion, minor = XkbMinorVersion;
|
||||||
if( XkbQueryExtension( GetDisplay(), &opcode, &event,&error, &major, &minor ) )
|
if( XkbQueryExtension( GetDisplay(), &opcode, &event,&error, &major, &minor ) )
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(SOLARIS)
|
#if defined(SOLARIS) || defined(AIX)
|
||||||
#include <sal/alloca.h>
|
#include <sal/alloca.h>
|
||||||
#include <osl/module.h>
|
#include <osl/module.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include "FWS.hxx"
|
#include "FWS.hxx"
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
#include <X11/extensions/dpms.h>
|
#include <X11/extensions/dpms.h>
|
||||||
#endif
|
#endif
|
||||||
#include <tools/postx.h>
|
#include <tools/postx.h>
|
||||||
@@ -2360,7 +2360,7 @@ void X11SalFrame::StartPresentation( BOOL bStart )
|
|||||||
// needs static here to save DPMS settings
|
// needs static here to save DPMS settings
|
||||||
int dummy;
|
int dummy;
|
||||||
static bool DPMSExtensionAvailable =
|
static bool DPMSExtensionAvailable =
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
(DPMSQueryExtension(GetXDisplay(), &dummy, &dummy) != 0);
|
(DPMSQueryExtension(GetXDisplay(), &dummy, &dummy) != 0);
|
||||||
static XLIB_BOOL DPMSEnabled = false;
|
static XLIB_BOOL DPMSEnabled = false;
|
||||||
#else
|
#else
|
||||||
@@ -2395,7 +2395,7 @@ void X11SalFrame::StartPresentation( BOOL bStart )
|
|||||||
// get the DPMS state right before the start
|
// get the DPMS state right before the start
|
||||||
if (DPMSExtensionAvailable)
|
if (DPMSExtensionAvailable)
|
||||||
{
|
{
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
CARD16 state; // card16 is defined in Xdm.h
|
CARD16 state; // card16 is defined in Xdm.h
|
||||||
DPMSInfo( GetXDisplay(),
|
DPMSInfo( GetXDisplay(),
|
||||||
&state,
|
&state,
|
||||||
@@ -2414,7 +2414,7 @@ void X11SalFrame::StartPresentation( BOOL bStart )
|
|||||||
prefer_blanking,
|
prefer_blanking,
|
||||||
allow_exposures );
|
allow_exposures );
|
||||||
}
|
}
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
if( DPMSEnabled )
|
if( DPMSEnabled )
|
||||||
{
|
{
|
||||||
if ( DPMSExtensionAvailable )
|
if ( DPMSExtensionAvailable )
|
||||||
@@ -2439,7 +2439,7 @@ void X11SalFrame::StartPresentation( BOOL bStart )
|
|||||||
allow_exposures );
|
allow_exposures );
|
||||||
nScreenSaversTimeout_ = 0;
|
nScreenSaversTimeout_ = 0;
|
||||||
}
|
}
|
||||||
#ifndef SOLARIS
|
#if !defined(SOLARIS) && !defined(AIX)
|
||||||
if ( DPMSEnabled )
|
if ( DPMSEnabled )
|
||||||
{
|
{
|
||||||
if ( DPMSExtensionAvailable )
|
if ( DPMSExtensionAvailable )
|
||||||
|
Reference in New Issue
Block a user