Skip to content

Commit

Permalink
Merge branch 'bsd_build_fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Jun 4, 2018
2 parents a4e6068 + ec97343 commit e4e1470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config.lib
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/os/strings.h
Expand Up @@ -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__ */
Expand Down

0 comments on commit e4e1470

Please sign in to comment.