Re: [dev] [ii] fails to build on systems with strlcpy

From: Manu Raster <manu.raster_AT_gmail.com>
Date: Wed, 30 May 2018 09:39:01 +0200

Misty De Meo <misty_AT_brew.sh> writes:

> On Tue, May 29, 2018 at 11:58 AM, Manu Raster <manu.raster_AT_gmail.com> wrote:
>> Strlcpy works fine with Linux and gcc, too. It's probably just a clang
>> or apple bug.
>
> I don't believe it's a clang bug, but just that the strlcpy definition
> clashes with the macro which is imported via <string.h>. (OS X defines
> both a C function and a macro by the same name which wraps it, at
> least at FORTIFY_SOURCE levels above 0.) I notice that iic does #undef
> strlcpy before the prototype definition, but strlcpy.c does not.
> Adding that allows ii to build for me.

Very well! Problem solved and this indeed helps dealing easier with mac
people when needed. (Windows people have a native win32 port of dwm
instead.)

BR
Manu
Received on Wed May 30 2018 - 09:39:01 CEST

This archive was generated by hypermail 2.3.0 : Wed May 30 2018 - 09:48:18 CEST