<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 14-02-12 12:57 PM, Keith Packard
wrote:<br>
</div>
<blockquote cite="mid:86vbwkz011.fsf@miki.keithp.com" type="cite">
<pre wrap="">This function is supposed to be automatically replaced with os/strlcpy.c
when not present in your C library.
Something appears to be amiss here; I don't have strlcpy <b class="moz-txt-star"><span class="moz-txt-tag">*</span>or<span class="moz-txt-tag">*</span></b> strlcat in
my glibc, and so configure correctly adds os/strlcpy.c and os/strlcat.c
to the build.
</pre>
</blockquote>
I cannot reproduce the problem anymore. I retraced my commands from
the terminal, run make CC="gcc -D_FORTIFY_SOURCE=2" again, this time
it works. <br>
<br>
This shows it is already defined:<br>
<blockquote><tt>nadon@memsize:~/xorg/src/app/xclock$ gcc -dM -E -
< /dev/null | grep FORTIFY</tt><tt><br>
</tt><tt>#define _FORTIFY_SOURCE 2</tt><tt><br>
</tt></blockquote>
There does not seem to be any harm in defining for all builds. If it
is not supported, it will be ignored.<br>
<br>
Let me know, and I can create a patch to add this in util-macros. It
can be conditionally added using AC_CHECK_DECLS. If it is already
define, it won't be added. <br>
<br>
</body>
</html>