bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lt__glibc includes argz.h even when HAVE_ARGZ_H is not defined


From: Andrew Miller
Subject: lt__glibc includes argz.h even when HAVE_ARGZ_H is not defined
Date: Tue, 15 Aug 2006 13:28:00 +1200
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Hi,

libltdl/libltdl/lt__glibc.h includes argz.h even when HAVE_ARGZ_H is not defined. This breaks building with latest CVS on OSX, and probably a number of other non-glibc platforms.

Please see my patch below.

Best regards,
Andrew Miller

--- /Users/cmiss/libtool-2.1a/libltdl/libltdl/lt__glibc.h 2005-09-17 19:29:03.000000000 +1200
+++ ../CellML_DOM_API/lt__glibc.h       2006-08-15 13:19:09.000000000 +1200
@@ -48,19 +48,21 @@
#  undef  argz_create_sep
#  define argz_create_sep      lt__argz_create_sep
#  undef  argz_insert
#  define argz_insert          lt__argz_insert
#  undef  argz_next
#  define argz_next            lt__argz_next
#  undef  argz_stringify
#  define argz_stringify       lt__argz_stringify
-#endif

+#else
#include <argz.h>
+#endif
+

# define slist_concat  lt__slist_concat
# define slist_cons    lt__slist_cons
# define slist_delete  lt__slist_delete
# define slist_remove  lt__slist_remove
# define slist_reverse lt__slist_reverse
# define slist_sort    lt__slist_sort
# define slist_tail    lt__slist_tail






reply via email to

[Prev in Thread] Current Thread [Next in Thread]