[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13495: Compilation fails on Mac OS X 10.8.0
From: |
Paul Eggert |
Subject: |
bug#13495: Compilation fails on Mac OS X 10.8.0 |
Date: |
Fri, 25 Jan 2013 14:18:20 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
On 01/25/2013 11:25 AM, Assaf Gordon wrote:
> So I'm guessing that even though gnulib's stpncpy code is used,
> because the MacOS's native declaration of stpncpy is included, it
> causes problems when the macro is expanded to use "__stpncpy_chk".
Does the following patch fix things for you? It attempts to change
the substitute string.h to inhibit that macro expansion.
diff --git a/lib/string.in.h b/lib/string.in.h
index 6223cce..b8d6a33 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -262,11 +262,13 @@ _GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - "
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
last non-NUL byte written into DST. */
#if @GNULIB_STPNCPY@
-# if @REPLACE_STPNCPY@
+# if @REPLACE_STPNCPY@ || (address@hidden@ && defined stpncpy)
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef stpncpy
# define stpncpy rpl_stpncpy
# endif
+# endif
+# if @REPLACE_STPNCPY@
_GL_FUNCDECL_RPL (stpncpy, char *,
(char *restrict __dst, char const *restrict __src,
size_t __n)
- bug#13495: Compilation fails on Mac OS X 10.8.0, (continued)
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/19
- bug#13495: Compilation fails on Mac OS X 10.8.0, Paul Eggert, 2013/01/19
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/19
- bug#13495: Compilation fails on Mac OS X 10.8.0, Paul Eggert, 2013/01/20
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/21
- bug#13495: Compilation fails on Mac OS X 10.8.0, Paul Eggert, 2013/01/22
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/24
- bug#13495: Compilation fails on Mac OS X 10.8.0, Paul Eggert, 2013/01/24
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/25
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/25
- bug#13495: Compilation fails on Mac OS X 10.8.0,
Paul Eggert <=
- bug#13495: Compilation fails on Mac OS X 10.8.0, Assaf Gordon, 2013/01/28