[libbluray-devel] getmntent_r() is GNU extension

hpi1 git at videolan.org
Mon Mar 19 08:55:48 CET 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 19 09:55:07 2012 +0200| [11902187f884557f4b523a11b740bf5ad91ad30a] | committer: hpi1

getmntent_r() is GNU extension

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

 src/libbluray/bluray.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index d2138d4..bc32d46 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -932,9 +932,13 @@ static void get_mount_point(BLURAY *bd)
         return;
 
     struct mntent* m;
+#ifdef HAVE_GETMNTENT_R
     struct mntent mbuf;
     char buf [8192];
     while ((m = getmntent_r (f, &mbuf, buf, sizeof(buf))) != NULL) {
+#else
+    while ((m = getmntent (f)) != NULL) {
+#endif
         if (!strcmp (m->mnt_fsname, bd->device_path)) {
             free(bd->device_path);
             bd->device_path = strdup (m->mnt_dir);



More information about the libbluray-devel mailing list