From 44276edb4c67524e0ee826435f0de977616c1433 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 20 Jan 2011 21:43:48 +0000 Subject: Enable weak symbols under OpenBSD on non-ELF platforms, too. ok matthieu@ todd@ --- lib/libXfont/src/stubs/stubs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3