Index: dia-0.97.1/objects/custom/shape_typeinfo.c =================================================================== --- dia-0.97.1.orig/objects/custom/shape_typeinfo.c +++ dia-0.97.1/objects/custom/shape_typeinfo.c @@ -27,7 +27,7 @@ #include "custom_util.h" #include #include -#include +#include #include #include Index: dia-0.97.1/plug-ins/pgf/render_pgf.c =================================================================== --- dia-0.97.1.orig/plug-ins/pgf/render_pgf.c +++ dia-0.97.1/plug-ins/pgf/render_pgf.c @@ -61,7 +61,7 @@ TODO: #endif #include -#include +#include #include #include "intl.h" Index: dia-0.97.1/tests/test-boundingbox.c =================================================================== --- dia-0.97.1.orig/tests/test-boundingbox.c +++ dia-0.97.1/tests/test-boundingbox.c @@ -28,7 +28,7 @@ #include #include -#if GLIB_CHECK_VERSION(2,16,0) +#if GLIB_CHECK_VERSION(2,16,0) && !GLIB_CHECK_VERSION(2,31,0) #include #endif #include "dialib.h" Index: dia-0.97.1/tests/test-objects.c =================================================================== --- dia-0.97.1.orig/tests/test-objects.c +++ dia-0.97.1/tests/test-objects.c @@ -28,7 +28,7 @@ #include #include -#if GLIB_CHECK_VERSION(2,16,0) +#if GLIB_CHECK_VERSION(2,16,0) && !GLIB_CHECK_VERSION(2,31,0) #include #endif