pkgsrc/www/firefox52/patches/patch-dom_system_OSFileConstants.cpp
ryoon c4d1b3723e Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.

It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.

Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 01:55:57 +00:00

33 lines
1.1 KiB
C++

$NetBSD: patch-dom_system_OSFileConstants.cpp,v 1.1 2017/04/27 01:55:57 ryoon Exp $
--- dom/system/OSFileConstants.cpp.orig 2017-01-23 16:13:57.000000000 +0000
+++ dom/system/OSFileConstants.cpp
@@ -16,14 +16,17 @@
#include "dirent.h"
#include "poll.h"
#include "sys/stat.h"
-#if defined(ANDROID)
+#if defined(XP_LINUX)
#include <sys/vfs.h>
#define statvfs statfs
+#define f_frsize f_bsize
#else
#include "sys/statvfs.h"
+#endif // defined(XP_LINUX)
+#if !defined(ANDROID)
#include "sys/wait.h"
#include <spawn.h>
-#endif // defined(ANDROID)
+#endif // !defined(ANDROID)
#endif // defined(XP_UNIX)
#if defined(XP_LINUX)
@@ -699,7 +702,7 @@ static const dom::ConstantSpec gLibcProp
{ "OSFILE_SIZEOF_STATVFS", JS::Int32Value(sizeof (struct statvfs)) },
- { "OSFILE_OFFSETOF_STATVFS_F_BSIZE", JS::Int32Value(offsetof (struct statvfs, f_bsize)) },
+ { "OSFILE_OFFSETOF_STATVFS_F_FRSIZE", JS::Int32Value(offsetof (struct statvfs, f_frsize)) },
{ "OSFILE_OFFSETOF_STATVFS_F_BAVAIL", JS::Int32Value(offsetof (struct statvfs, f_bavail)) },
#endif // defined(XP_UNIX)