From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3732 invoked by alias); 15 Aug 2006 11:36:33 -0000 Received: (qmail 3714 invoked by uid 22791); 15 Aug 2006 11:36:32 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Aug 2006 11:36:30 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k7FBaLge009893; Tue, 15 Aug 2006 13:36:21 +0200 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k7FBaK3F009892; Tue, 15 Aug 2006 13:36:20 +0200 Date: Tue, 15 Aug 2006 11:36:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix ppc* build Message-ID: <20060815113620.GI4556@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00023.txt.bz2 Hi! There is no clock_settime vsyscall, so clock_settime.c doesn't compile on ppc{,64}. 2006-08-15 Jakub Jelinek * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than HAVE_CLOCK_GETTIME_VSYSCALL. (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here. --- libc/sysdeps/unix/sysv/linux/clock_settime.c 2006-08-15 07:35:15.000000000 +0200 +++ libc/sysdeps/unix/sysv/linux/clock_settime.c 2006-08-15 10:41:50.000000000 +0200 @@ -22,7 +22,7 @@ #include "kernel-posix-cpu-timers.h" #include -#ifndef HAVE_CLOCK_GETTIME_VSYSCALL +#ifndef HAVE_CLOCK_GETRES_VSYSCALL # undef INTERNAL_VSYSCALL # define INTERNAL_VSYSCALL INTERNAL_SYSCALL # undef INLINE_VSYSCALL @@ -43,7 +43,7 @@ maybe_syscall_settime_cpu (clockid_t clo if (!__libc_missing_posix_cpu_timers) { INTERNAL_SYSCALL_DECL (err); - int r = INTERNAL_VSYSCALL (clock_settime, err, 2, clock_id, tp); + int r = INTERNAL_SYSCALL (clock_settime, err, 2, clock_id, tp); if (!INTERNAL_SYSCALL_ERROR_P (r, err)) return 0; Jakub