File libsmi-0.4.5-no_redef.diff of Package libsmi

--- lib/snprintf.h
+++ lib/snprintf.h
@@ -45,12 +45,20 @@
 extern int vsnprintf (char *str, size_t sz, const char *format, va_list args);
 #endif
 
+#ifndef HAVE_ASPRINTF
 extern int asprintf (char **ret, const char *format, ...);
+#endif
 
+#ifndef HAVE_ASNPRINTF
 extern int asnprintf (char **ret, size_t max_sz, const char *format, ...);
+#endif
 
+#ifndef HAVE_VASPRINTF
 extern int vasprintf (char **ret, const char *format, va_list args);
+#endif
 
+#ifndef HAVE_VSNPRINTF
 extern int vasnprintf (char **ret, size_t max_sz, const char *format,
 		       va_list args);
+#endif
 
openSUSE Build Service is sponsored by