[uClibc] build problem

Erik Andersen andersen at codepoet.org
Tue Feb 17 10:48:26 UTC 2004


On Tue Feb 17, 2004 at 10:34:47AM +0000, Alan Hourihane wrote:
> This gets the build working on alpha again. 
[----------snip----------]
> -_syscall1(int, fdatasync, int, fd);
> +#if defined (__alpha__)
> +#define __NR___syscall_fdatasync __NR_osf_fdatasync
> +#else
> +#define __NR___syscall_fdatasync __NR_fdatasync
> +#endif
> +
> +_syscall1(int, __syscall_fdatasync, int, fd);

Hmm.  Except this would then leave everyone without
an fdatasync() symbol...  How about this instead?

--- libc/sysdeps/linux/common/fdatasync.c	21 Jan 2004 23:27:39 -0000	1.1
+++ libc/sysdeps/linux/common/fdatasync.c	17 Feb 2004 10:47:35 -0000
@@ -9,4 +9,11 @@
 
 #include "syscalls.h"
 #include <unistd.h>
+
+#if defined (__alpha__)
+#undef  __NR_fdatasync
+#define __NR_fdatasync __NR_osf_fdatasync
+#endif
+
 _syscall1(int, fdatasync, int, fd);
+

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list