diff options
author | Robert Nagy <robert@openbsd.org> | 2010-11-04 09:25:04 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-11-08 12:32:28 +0100 |
commit | 30a34fcf313418fecc68d034c739aa0b1641ed9a (patch) | |
tree | f95e281960aba0386bb8b551cafcd5c62bb22789 /cppu | |
parent | c8540f08500f468d2fb503f09bb36309a65137a5 (diff) |
Patches for ure, neeed by OpenBSD
Adds the necessary distinctions in the system abstraction layers.
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/data.cxx | 6 | ||||
-rw-r--r-- | cppu/util/makefile.mk | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 7fb77a81c308..6d2982981d35 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -360,7 +360,8 @@ sal_Bool SAL_CALL uno_type_isAssignableFromData( #endif #if defined(INTEL) \ - && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OS2)) || defined(MACOSX) \ + && (defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OS2) || \ + defined(OPENBSD)) || defined(MACOSX) \ || defined(__SUNPRO_CC) && defined(SOLARIS)) #define MAX_ALIGNMENT_4 #endif @@ -373,7 +374,8 @@ sal_Bool SAL_CALL uno_type_isAssignableFromData( if (OFFSET_OF(s, m) != n) { fprintf( stderr, "### OFFSET_OF(" #s ", " #m ") = %d instead of expected %d!!!\n", OFFSET_OF(s, m), n ); abort(); } #if OSL_DEBUG_LEVEL > 1 -#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD)) && (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390)) +#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD) || defined(OPENBSD)) && \ + (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390)) #define BINTEST_VERIFYSIZE( s, n ) \ fprintf( stderr, "> sizeof(" #s ") = %d; __alignof__ (" #s ") = %d\n", sizeof(s), __alignof__ (s) ); \ if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } diff --git a/cppu/util/makefile.mk b/cppu/util/makefile.mk index 2e52c28b5193..f86835309323 100644 --- a/cppu/util/makefile.mk +++ b/cppu/util/makefile.mk @@ -60,7 +60,7 @@ SHL1STDLIBS = $(SALLIB) SHL1DEPN= SHL1IMPLIB=i$(TARGET) -.IF "$(OS)"!="FREEBSD" +.IF "$(OS)"!="FREEBSD" && "$(OS)"!="OPENBSD" SHL1DEF=$(MISC)$/$(SHL1TARGET).def .ENDIF |