[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: boot-time: straighten code
From: |
Paul Eggert |
Subject: |
Re: boot-time: straighten code |
Date: |
Sat, 12 Aug 2023 23:35:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 2023-08-12 20:26, Po Lu wrote:
In file included from boot-time.c:54:0:
boot-time-aux.h: In function 'get_linux_uptime':
boot-time-aux.h:70:3: error: implicit declaration of function 'sysinfo'
[-Werror=implicit-function-declaration]
if (sysinfo (&info) >= 0)
^
boot-time.c: In function 'get_boot_time_uncached':
boot-time.c:111:26: error: 'BOOT_TIME' undeclared (first use in this function)
if (ut->ut_type == BOOT_TIME)
^
boot-time.c:111:26: note: each undeclared identifier is reported only once for
each function it appears in
boot-time.c:126:3: error: implicit declaration of function 'endutent'
[-Werror=implicit-function-declaration]
END_UTMP_ENT ();
^
cc1: some warnings being treated as errors
Thanks for reporting that. As I understand it, the utmp/utmpx functions
are a losing cause on Android since they never return anything. If so,
it's simpler to bypass these functions on that platform. Also, Gnulib
should bypass sysinfo unless it's available. Please try the attached
patch, which I haven't installed onto Emacs master on Savannah. I've
tested it only on Ubuntu 23.04.
If this patch works we can propagate it to Gnulib.
0001-Temp-patch-for-Android.patch
Description: Text Data
- Re: boot-time: straighten code, Paul Eggert, 2023/08/12
- Re: boot-time: straighten code, Po Lu, 2023/08/12
- Re: boot-time: straighten code,
Paul Eggert <=
- Re: boot-time: straighten code, Bruno Haible, 2023/08/13
- Re: boot-time: straighten code, Bruno Haible, 2023/08/13
- Re: boot-time: straighten code, Bruno Haible, 2023/08/13
- Re: boot-time: straighten code, Po Lu, 2023/08/13
- Re: boot-time: straighten code, Bruno Haible, 2023/08/13
- Re: boot-time: straighten code, Po Lu, 2023/08/13
- Re: boot-time: straighten code, Corwin Brust, 2023/08/13
- Re: Windows port binaries, Bruno Haible, 2023/08/15
- Re: Windows port binaries, Po Lu, 2023/08/16
- Re: Windows port binaries, Eli Zaretskii, 2023/08/16