diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-13 15:41:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-13 15:41:23 +0100 |
commit | d863b3d5cb7ce6f21241e89dc01de797b4d0c3c5 (patch) | |
tree | 319c568ca84caeae735a27397fa4885e4bfed793 /vcl | |
parent | 778b755a3fe25b887e00b93daa5d169072a195fe (diff) |
tweaks for AIX
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/app/gtksys.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/window/gtkobject.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/source/app/keysymnames.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/source/app/saldisp.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/source/window/salframe.cxx | 10 |
8 files changed, 34 insertions, 10 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index e02478ac8ad8..f028a350f4f7 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -28,6 +28,12 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #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/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx index 04498810597f..6460dea679f9 100644 --- a/vcl/unx/gtk/a11y/atktextattributes.cxx +++ b/vcl/unx/gtk/a11y/atktextattributes.cxx @@ -1092,7 +1092,7 @@ TabStopList2String( const uno::Any& rAny, bool default_tabs ) if( 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 ); } else diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index 076e36291ae6..d1fb4652dbfd 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -28,6 +28,12 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #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/XAccessibleEventBroadcaster.hpp> #include <com/sun/star/accessibility/XAccessibleSelection.hpp> diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx index 272af20d0886..094cd470d09d 100644 --- a/vcl/unx/gtk/app/gtksys.cxx +++ b/vcl/unx/gtk/app/gtksys.cxx @@ -28,6 +28,12 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_vcl.hxx" +#ifdef AIX +#define _LINUX_SOURCE_COMPAT +#include <sys/timer.h> +#undef _LINUX_SOURCE_COMPAT +#endif + #include <svunx.h> #include <vcl/svdata.hxx> #include <vcl/window.hxx> diff --git a/vcl/unx/gtk/window/gtkobject.cxx b/vcl/unx/gtk/window/gtkobject.cxx index aefb60f5606b..58c63c4044e3 100644 --- a/vcl/unx/gtk/window/gtkobject.cxx +++ b/vcl/unx/gtk/window/gtkobject.cxx @@ -28,6 +28,12 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #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/gtkframe.hxx> #include <plugins/gtk/gtkdata.hxx> diff --git a/vcl/unx/source/app/keysymnames.cxx b/vcl/unx/source/app/keysymnames.cxx index 9f605be3a7a3..20cb3332caed 100644 --- a/vcl/unx/source/app/keysymnames.cxx +++ b/vcl/unx/source/app/keysymnames.cxx @@ -28,7 +28,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_vcl.hxx" -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) #include <tools/prex.h> #include <X11/XKBlib.h> #include <tools/postx.h> @@ -601,7 +601,7 @@ const char* SalDisplay::GetKeyboardName( bool bRefresh ) { if( bRefresh || ! m_aKeyboardName.Len() ) { -#ifdef SOLARIS +#if defined(SOLARIS) if( IsLocal() ) { int kbd = open( "/dev/kbd", O_RDONLY ); @@ -640,7 +640,7 @@ const char* SalDisplay::GetKeyboardName( bool bRefresh ) close(kbd); } } -#else +#elif !defined(AIX) int opcode, event, error; int major = XkbMajorVersion, minor = XkbMinorVersion; if( XkbQueryExtension( GetDisplay(), &opcode, &event,&error, &major, &minor ) ) diff --git a/vcl/unx/source/app/saldisp.cxx b/vcl/unx/source/app/saldisp.cxx index 94e2b393eb2f..c0f8cc0ae018 100644 --- a/vcl/unx/source/app/saldisp.cxx +++ b/vcl/unx/source/app/saldisp.cxx @@ -41,7 +41,7 @@ #include <ctype.h> #include <string.h> -#if defined(SOLARIS) +#if defined(SOLARIS) || defined(AIX) #include <sal/alloca.h> #include <osl/module.h> #endif diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx index cb0b7b08f8ec..0e09166e012b 100644 --- a/vcl/unx/source/window/salframe.cxx +++ b/vcl/unx/source/window/salframe.cxx @@ -38,7 +38,7 @@ #include <X11/keysym.h> #include "FWS.hxx" #include <X11/extensions/shape.h> -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) #include <X11/extensions/dpms.h> #endif #include <tools/postx.h> @@ -2360,7 +2360,7 @@ void X11SalFrame::StartPresentation( BOOL bStart ) // needs static here to save DPMS settings int dummy; static bool DPMSExtensionAvailable = -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) (DPMSQueryExtension(GetXDisplay(), &dummy, &dummy) != 0); static XLIB_BOOL DPMSEnabled = false; #else @@ -2395,7 +2395,7 @@ void X11SalFrame::StartPresentation( BOOL bStart ) // get the DPMS state right before the start if (DPMSExtensionAvailable) { -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) CARD16 state; // card16 is defined in Xdm.h DPMSInfo( GetXDisplay(), &state, @@ -2414,7 +2414,7 @@ void X11SalFrame::StartPresentation( BOOL bStart ) prefer_blanking, allow_exposures ); } -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) if( DPMSEnabled ) { if ( DPMSExtensionAvailable ) @@ -2439,7 +2439,7 @@ void X11SalFrame::StartPresentation( BOOL bStart ) allow_exposures ); nScreenSaversTimeout_ = 0; } -#ifndef SOLARIS +#if !defined(SOLARIS) && !defined(AIX) if ( DPMSEnabled ) { if ( DPMSExtensionAvailable ) |