Including <cerrno> instead of <errno.h>, does it upset POSIX?

Ahmad Samir a.samirh78 at gmail.com
Thu Apr 15 21:17:30 BST 2021


On 15/04/2021 00:16, Albert Astals Cid wrote:

[...]

>> karchive/autotests/karchivetest.cpp:28:#include <errno.h>
>> karchive/src/karchive.cpp:23:#include <errno.h>
> 
> I changed those and it compiles just fine here.
> 
>>
>> kdesu/src/kdesu_stub.c:31:#include <errno.h> (this is C code (guessing since I don't know C), so it
>> makes sense to leave that one in)
> 
> Yes, this is not C++
> 
>> kholidays/src/parsers/plan2/holidayscannerplan.cpp:1313:# include <errno.h>
>> kholidays/src/parsers/plan2/holidayscannerplan.lpp:17:# include <errno.h>
> 
> This works too
> 
>> kinit/src/kdeinit/kinit.cpp:24:#include <errno.h>
>> kinit/src/kdeinit/kinit_mac.mm:25:#include <errno.h>
>> kinit/src/kdeinit/kinit_win.cpp:15:#include <errno.h>
>> kinit/src/klauncher/klauncher.cpp:21:#include <errno.h>
>> kinit/src/start_kdeinit/start_kdeinit.c:12:#include <errno.h>
>> kinit/src/wrapper.cpp:23:#include <errno.h>
> 
> Same (obviously excluding start_kdeinit.c)
> 
>>
>> ktexteditor/src/buffer/katesecuretextbuffer.cpp:12:#include <errno.h>
>> ktexteditor/src/buffer/katetextbuffer.cpp:20:#include <errno.h>
> 
> Same.
> 
> Maybe your problem was that you tried to change C files?
> 

I'll try again, maybe there is/was something in my build environment... no idea what though. :)

There was only a couple of .c files (I remember kdesu); but ktexteditor doesn't have an .c files.

Thanks for re-checking.

> Cheers,
>    Albert
> 
>   

-- 
Ahmad Samir


More information about the Kde-frameworks-devel mailing list