Permalink
Browse files

Merge branch 'bsd_build_fix'

  • Loading branch information...
miniupnp committed Jun 4, 2018
2 parents a4e6068 + ec97343 commit e4e1470f01ef712bcf1935c1e15b6c8896f29d0c
Showing with 4 additions and 1 deletion.
  1. +3 −0 config.lib
  2. +1 −1 src/os/strings.h
View
@@ -1081,6 +1081,9 @@ make_cflags_and_ldflags() {
if [ "$with_pulse" != "0" ]; then
LIBS="$LIBS $(pkg-config --libs-only-l libpulse)"
CFLAGS="$CFLAGS $(pkg-config --cflags libpulse) -DPULSEAUDIO"
if [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ]; then
LIBS="$LIBS -lintl"
fi
fi
if [ "$with_munt" != "0" ]; then
View
@@ -84,7 +84,7 @@
#if !defined(__MINGW32__) && defined(__GNUC__) && !defined(snprintf)
/* (v)snprintf is in fact C99, but we like to use it over (v)sprintf for the obvious reasons */
#if !defined(__APPLE__) && !defined(TOS) && !defined(__FreeBSD__) && !defined(__DJGPP__)
#if !defined(__APPLE__) && !defined(TOS) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DJGPP__)
extern int snprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, ...) __THROW __attribute__ ((__format__ (__printf__, 3, 4)));
extern int vsnprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, va_list __arg) __THROW __attribute__ ((__format__ (__printf__, 3, 0)));
#endif /* __APPLE__ */

0 comments on commit e4e1470

Please sign in to comment.