Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 30 Mar 2013 14:16:48 -0500
From: Strake <>
Subject: Re: #define __MUSL__ in features.h

LM <> wrote:
> Was thinking an identifier like __MUSL__ would be useful as well.  So
> what would be the best way to identify that this compiler is different
> than the default system compiler for an example like openssl's
> ui_openssl.c file?


> The patch at
> just uses sed to replace things.

I note the repeated "f x >x.mod; mv x.mod x" scheme. I wrote this to
do so, ∀ f:
The code would thus be clearer.

> I came up with something similar as
> well when I was attempting to build openssl.  Needed to conditionally
> define TERMIOS and undef TERMIO.  Would be nice if this could be done
> in the code using ifdefs instead of with sed, so that the patch could
> be sent back to the openssl developers.

Szabolcs Nagy <> wrote:
> no, this should be fixed by openssl using
> their huge configuration script correctly,
> ie. detecting what is available instead of
> using wrong ifdefs
> their assumptions about termios is broken,
> adding more ifdefs would just make it worse
> (note that termios.h is specified by posix
> so even if they want to use ifdefs, that
> should be the fallback on a posix system)

Yes, in my experience, openssl is grievous to build, and I can't
remember all what perversions I wrought to do so, but both -DTERMIOS
and -DTERMIO are in Configure, so it may well be at fault.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.