315fb89d15
It seems that SCO OSR5 does not provide scandir(3), provide custom scandir().
19 lines
824 B
C
19 lines
824 B
C
$NetBSD: patch-src_fcftint.h,v 1.1 2014/07/15 14:48:34 ryoon Exp $
|
|
|
|
--- src/fcftint.h.orig 2014-01-20 08:14:20.000000000 +0000
|
|
+++ src/fcftint.h
|
|
@@ -25,7 +25,13 @@
|
|
|
|
#include <fontconfig/fcfreetype.h>
|
|
|
|
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
|
|
+/* Bug of GCC 4.2 (visibility and -fPIC)
|
|
+ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861 */
|
|
+#if (__GNUC__ == 4 && __GNUC_MINOR__ == 2) && defined(__ELF__) && !defined(__sun)
|
|
+#define FcPrivate
|
|
+#define HAVE_GNUC_ATTRIBUTE 1
|
|
+#include "fcftalias.h"
|
|
+#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun) && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)
|
|
#define FcPrivate __attribute__((__visibility__("hidden")))
|
|
#define HAVE_GNUC_ATTRIBUTE 1
|
|
#include "fcftalias.h"
|