File sam2p-0.49.2-nobsdsource.patch of Package sam2p

Index: sam2p-0.49.2/gensio.cpp
===================================================================
--- sam2p-0.49.2.orig/gensio.cpp
+++ sam2p-0.49.2/gensio.cpp
@@ -15,7 +15,7 @@ extern "C" int _l_stat(const char *file_
 extern "C" int _v_s_n_printf ( char *str, size_t n, const char *format, va_list ap );
 #else
 #undef __STRICT_ANSI__ /* for __MINGW32__ */
-#define _BSD_SOURCE 1 /* vsnprintf(); may be emulated with fixup_vsnprintf() */
+#define _DEFAULT_SOURCE 1 /* vsnprintf(); may be emulated with fixup_vsnprintf() */
 #ifndef __APPLE__ /* SUXX: Max OS X has #ifndef _POSIX_SOURCE around lstat() :-( */
 #define _POSIX_SOURCE 1 /* also popen() */
 #endif
openSUSE Build Service is sponsored by