[vlc-commits] configure: do not redefine _REENTRANT

Rémi Denis-Courmont git at videolan.org
Tue Nov 18 16:31:14 CET 2014


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 23 19:27:01 2014 +0300| [88e94aee244499834648054484f4266c88a7e260] | committer: Jean-Baptiste Kempf

configure: do not redefine _REENTRANT

This fixes warnings with PulseAudio and with MingW.

(cherry picked from commit 8dcec7992236b8d2528ab088554766058d71505c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=88e94aee244499834648054484f4266c88a7e260
---

 configure.ac |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a37477a..b309ba1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,11 @@ AC_PROG_CC_C99
 AC_USE_SYSTEM_EXTENSIONS
 AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to 2 to get glibc warnings.])
 AC_DEFINE([_FILE_OFFSET_BITS], 64, [Define to 64 for large files support.])
-AC_DEFINE([_REENTRANT],, [Define to expose reentrant functions.])
+AH_TOP([
+#ifndef _REENTRANT
+# define _REENTRANT
+#endif
+])
 AC_DEFINE([_THREAD_SAFE],, [Same as _REENTANT for some other OSes.])
 AC_DEFINE([__LIBVLC__],, [Define within the LibVLC source code tree.])
 AC_DEFINE([WIN32_LEAN_AND_MEAN],, [Define to limit the scope of <windows.h>.])



More information about the vlc-commits mailing list