[PATCH] fix compilation for mips with glibc-20051121 try 2

Andreas Jaeger aj@suse.de
Mon Nov 28 08:26:00 GMT 2005


René Rebe <rene@exactcode.de> writes:

> The attached patch works around this. Most probably there is a more elegant 
> way to fix this.

Roland added this patch already, I've added the other one,

Thanks,
Andreas

>
> --- glibc/sysdeps/unix/sysv/linux/fchownat.c.vanilla	2005-11-27 12:30:44.000000000 +0100
> +++ glibc/sysdeps/unix/sysv/linux/fchownat.c	2005-11-27 12:37:15.000000000 +0100
> @@ -23,6 +23,8 @@
>  #include <string.h>
>  #include <unistd.h>
>  #include <sys/types.h>
> +#include <alloca.h>
> +#include <sysdep.h>
>  
>  /* Change the owner and group of FILE.  */
>  int
>
>
> and later on MREMAP_FIXED was undefined:
>
> --- glibc/sysdeps/unix/sysv/linux/mips/bits/mman.h.vanilla	2005-11-27 13:20:18.000000000 +0100
> +++ glibc/sysdeps/unix/sysv/linux/mips/bits/mman.h	2005-11-27 13:23:09.000000000 +0100
> @@ -89,4 +89,5 @@
>  /* Flags for `mremap'.  */
>  #ifdef __USE_GNU
>  # define MREMAP_MAYMOVE	1
> +# define MREMAP_FIXED	2
>  #endif
>
>
>
> Yours,

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051128/df22fce8/attachment.sig>


More information about the Libc-alpha mailing list