[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] mknod: mknod() needs unistd.h on OS/2 kLIBC
From: |
KO Myung-Hun |
Subject: |
Re: [PATCH 2/2] mknod: mknod() needs unistd.h on OS/2 kLIBC |
Date: |
Thu, 17 Jan 2019 23:36:54 +0900 |
User-agent: |
Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Blake wrote:
> On 1/16/19 10:35 PM, KO Myung-Hun wrote:
>> On OS/2 kLIBC, mknod() is declared in unistd.h. This fixes
>> 'implicit declaration of function' compilation warning.
>>
>> * lib/mknod.c: Include unistd.h. --- lib/mknod.c | 2 ++ 1 file
>> changed, 2 insertions(+)
>>
>> diff --git a/lib/mknod.c b/lib/mknod.c index dbbfe29c4..1d4b490ca
>> 100644 --- a/lib/mknod.c +++ b/lib/mknod.c @@ -18,6 +18,8 @@
>>
>> #include <config.h>
>>
>> +/* On OS/2 kLIBC, mknod() is declared in unistd.h. */ +#include
>> <unistd.h> #include <sys/stat.h>
>
> This patch is wrong; it only fixes the symptom instead of the
> problem, and anyone using the module would have to repeat the fix
> in their own .c files. Instead, we should be fixing the gnulib
> <sys/stat.h> replacement header to pull in <unistd.h> automatically
> on OS/2, so that anyone using the gnulib module can use just the
> POSIX header to get the declaration.
>
Fixed. Thanks a lot.
- --
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.os2.kr/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFcQJMFE9YstvghgroRAqYoAJ9eqZnSFKnVEo0/xK/lQF9RwDhfmwCeL+MS
KKlkuDN2g0sxB0KG+gjuuT4=
=7gfK
-----END PGP SIGNATURE-----
0001-sys_stat-Include-unistd.h-for-mknod-on-OS-2-kLIBC.patch
Description: Source code patch
0001-sys_stat-Include-unistd.h-for-mknod-on-OS-2-kLIBC.patch.sig
Description: Binary data
[PATCH 1/2] fcntl: Remove mis-placed ';', KO Myung-Hun, 2019/01/16