[vlc-devel] commit: rtsp: Include xlocale.h for Mac OS X (at least). (Pierre d' Herbemont )

git version control git at videolan.org
Wed Jul 9 23:18:44 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Jul  9 23:20:55 2008 +0200| [dfea366d0cf300a175d5efe39b7ec200c9fe7c4e]

rtsp: Include xlocale.h for Mac OS X (at least).

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

 configure.ac        |    2 +-
 modules/misc/rtsp.c |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index eca81c7..2518001 100644
--- a/configure.ac
+++ b/configure.ac
@@ -802,7 +802,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
 
 dnl Check for headers
 AC_CHECK_HEADERS(signal.h time.h errno.h stdint.h stdbool.h getopt.h strings.h inttypes.h sys/int_types.h wchar.h locale.h)
-AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h)
+AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
 AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h])
 AC_CHECK_HEADERS([net/if.h], [], [],
   [
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 1a7a416..10708f7 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -44,10 +44,15 @@
 #include <vlc_strings.h>
 
 #include <errno.h>
+
 #ifndef WIN32
 # include <locale.h>
 #endif
 
+#ifdef HAVE_XLOCALE_H
+# include <xlocale.h>
+#endif
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/




More information about the vlc-devel mailing list