Fix a build fail with gcc 2.95, not supporting the flexible array members.
This commit is contained in:
parent
489a575a74
commit
da9400212d
|
@ -23,6 +23,7 @@ dnl PERFORMANCE OF THIS SOFTWARE.
|
||||||
dnl
|
dnl
|
||||||
dnl Process this file with autoconf to create configure.
|
dnl Process this file with autoconf to create configure.
|
||||||
|
|
||||||
|
AC_PREREQ(2.61)
|
||||||
AC_INIT(fonts.dtd)
|
AC_INIT(fonts.dtd)
|
||||||
|
|
||||||
dnl ==========================================================================
|
dnl ==========================================================================
|
||||||
|
@ -128,6 +129,7 @@ AC_CHECK_HEADERS([fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statf
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
AC_C_FLEXIBLE_ARRAY_MEMBER
|
||||||
AC_TYPE_PID_T
|
AC_TYPE_PID_T
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
|
|
|
@ -280,7 +280,7 @@ struct _FcExprPage {
|
||||||
FcExprPage *next_page;
|
FcExprPage *next_page;
|
||||||
FcExpr *next;
|
FcExpr *next;
|
||||||
FcExpr exprs[(1024 - 2/* two pointers */ - 2/* malloc overhead */) * sizeof (void *) / sizeof (FcExpr)];
|
FcExpr exprs[(1024 - 2/* two pointers */ - 2/* malloc overhead */) * sizeof (void *) / sizeof (FcExpr)];
|
||||||
FcExpr end[];
|
FcExpr end[FLEXIBLE_ARRAY_MEMBER];
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum _FcQual {
|
typedef enum _FcQual {
|
||||||
|
|
Loading…
Reference in New Issue