[libbluray-devel] Added configure check for strings.h

hpi1 git at videolan.org
Sat May 7 09:44:47 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May  6 14:56:46 2011 +0300| [5c9520ffdc82a8156564c592dedf4e3c85449d5b] | committer: hpi1

Added configure check for strings.h

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=5c9520ffdc82a8156564c592dedf4e3c85449d5b
---

 configure.ac                     |    2 +-
 src/libbluray/bdnav/meta_parse.c |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 97b4a2c..b0d1b80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -97,7 +97,7 @@ AC_TYPE_SIGNAL
 
 # required headers
 AC_CHECK_HEADERS([stdarg.h sys/types.h dirent.h errno.h libgen.h malloc.h])
-AC_CHECK_HEADERS([stdlib.h mntent.h linux/cdrom.h inttypes.h])
+AC_CHECK_HEADERS([stdlib.h mntent.h linux/cdrom.h inttypes.h strings.h])
 AC_CHECK_HEADERS([sys/time.h time.h])
 if test "${SYS}" != "mingw32" ; then
     AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])])
diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index c6ffeff..6bc31b9 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -31,9 +31,12 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include <strings.h>
 #include <errno.h>
 
+#if HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #ifdef HAVE_LIBXML2
 #include <libxml/parser.h>
 #include <libxml/xmlmemory.h>



More information about the libbluray-devel mailing list