Skip to content

Commit

Permalink
Fix compile error on *BSD systems.
Browse files Browse the repository at this point in the history
Patch by brad@comstyle.com.
Fixes ticket:3845.
  • Loading branch information
Cyp committed Jan 21, 2013
1 parent b6b6265 commit 47a6d6d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions configure.ac
Expand Up @@ -135,15 +135,10 @@ case ${host_os} in
AC_SUBST([WIN32_LIBS], [${WIN32_LIBS}])
LDFLAGS="-Wl,-subsystem,windows ${LDFLAGS}"
;;
*openbsd*)
AC_DEFINE([_XOPEN_SOURCE], 600, [Enable POSIX extensions if present])
# Make sure that backtrace_symbols_fd (GNU raw back trace extension) has some symbols to work with
LDFLAGS="-Wl,-export-dynamic ${LDFLAGS}"
;;
*)
# Some platforms don't need _XOPEN_SOURCE
case ${host_os} in
*freebsd*) ;;
*bsd* | dragonfly* | bitrig*) ;;
*)
AC_DEFINE([_XOPEN_SOURCE], 600, [Enable POSIX extensions if present])
;;
Expand Down

0 comments on commit 47a6d6d

Please sign in to comment.