From b97518666dc32710fe69eee33ee56881dcff1bbc Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Sun, 28 Oct 2007 09:37:52 +0100 Subject: [PATCH] Fix accidental ABI usage in RANDR 1.2 drivers. Due to RANDR 1.2, xf86findOptionValue and xf86nameCompare are now ABI. Make sure they're exported from the server. --- hw/xfree86/parser/Flags.c | 2 +- hw/xfree86/parser/scan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/parser/Flags.c b/hw/xfree86/parser/Flags.c index 5b60a5155..730ea0cab 100644 --- a/hw/xfree86/parser/Flags.c +++ b/hw/xfree86/parser/Flags.c @@ -330,7 +330,7 @@ xf86findOption (XF86OptionPtr list, const char *name) * returned. If the option is not found, a NULL is returned. */ -char * +__attribute__((visibility("default"))) char * xf86findOptionValue (XF86OptionPtr list, const char *name) { XF86OptionPtr p = xf86findOption (list, name); diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 55c7eb55f..e7989d107 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -948,7 +948,7 @@ StringToToken (char *str, xf86ConfigSymTabRec * tab) * Compare two names. The characters '_', ' ', and '\t' are ignored * in the comparison. */ -int +__attribute__((visibility("default"))) int xf86nameCompare (const char *s1, const char *s2) { char c1, c2;