diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-01-20 21:43:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-01-20 21:43:48 +0000 |
commit | 44276edb4c67524e0ee826435f0de977616c1433 (patch) | |
tree | 4dc6c46be42caa55aa6e19631ae936cc65d6770a | |
parent | c3237ce75da9d1a82ae9059697434c1187f15237 (diff) |
Enable weak symbols under OpenBSD on non-ELF platforms, too.
ok matthieu@ todd@
-rw-r--r-- | lib/libXfont/src/stubs/stubs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libXfont/src/stubs/stubs.h b/lib/libXfont/src/stubs/stubs.h index 883b09064..3bce4010f 100644 --- a/lib/libXfont/src/stubs/stubs.h +++ b/lib/libXfont/src/stubs/stubs.h @@ -10,7 +10,7 @@ #endif /* this probably works for Mach-O too, but probably not for PE */ -#if (defined(__APPLE__) || defined(__ELF__)) && \ +#if (defined(__APPLE__) || defined(__ELF__) || defined(__OpenBSD__)) && \ defined(__GNUC__) && ((__GNUC__ >= 3) || ((__GNUC__ == 2) && __GNUC_MINOR__ >= 95 )) #define weak __attribute__((weak)) #else |