glib: Allow cross-building with native glib 2.24.
[minipack.git] / patches / guile / 05-fix-scmconfig.patch
blob00fa5aa865dc1a36954e979f178a72df66a23f13
1 --- guile-1.8.7/libguile/gen-scmconfig.c.orig 2010-01-17 19:07:19.128320100 -0200
2 +++ guile-1.8.7/libguile/gen-scmconfig.c 2010-01-17 19:07:22.565908100 -0200
3 @@ -119,6 +119,14 @@
5 #ifdef HAVE_CONFIG_H
6 # include <config.h>
7 +/*
8 + config.h may have the below defined based on the target compiler.
9 + When cross-compiling, these may conflict with the native compiler.
10 +*/
11 +# undef gid_t
12 +# undef mode_t
13 +# undef socklen_t
14 +# undef uid_t
15 #endif
17 #include <libguile/gen-scmconfig.h>