diff options
author | avl <avl@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-07-30 10:46:13 +0800 |
---|---|---|
committer | avl <avl@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-07-30 10:46:13 +0800 |
commit | 147cbe046104ac06070827ec74cd080e3d6dc0c9 (patch) | |
tree | ff2a050629a2eafba0a4d8df7fbd90ed02cd1f1a /devel/seed/files/patch-modules_os_seed-os.c | |
parent | e2ce3db3c008fa9a6ff1ddfb6956c425341ff62c (diff) | |
download | marcuscom-ports-147cbe046104ac06070827ec74cd080e3d6dc0c9.tar.gz marcuscom-ports-147cbe046104ac06070827ec74cd080e3d6dc0c9.tar.zst marcuscom-ports-147cbe046104ac06070827ec74cd080e3d6dc0c9.zip |
Seed is a library and interpreter, dynamically bridging (through
GObjectIntrospection) the WebKit JavaScriptCore engine, with the GNOME
platform. Seed serves as something which enables you to write standalone
applications in JavaScript, or easily enable your application to be extensible
in JavaScript.
WWW: http://live.gnome.org/Seed
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12543 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/seed/files/patch-modules_os_seed-os.c')
-rw-r--r-- | devel/seed/files/patch-modules_os_seed-os.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/devel/seed/files/patch-modules_os_seed-os.c b/devel/seed/files/patch-modules_os_seed-os.c new file mode 100644 index 000000000..7c495abea --- /dev/null +++ b/devel/seed/files/patch-modules_os_seed-os.c @@ -0,0 +1,41 @@ +--- modules/os/seed-os.c.orig 2009-07-08 14:21:59.000000000 -0400 ++++ modules/os/seed-os.c 2009-07-27 12:55:03.000000000 -0400 +@@ -12,6 +12,9 @@ + #include <sys/utsname.h> + + #include <sys/types.h> ++#include <sys/ioctl.h> ++#include <termios.h> ++#include <libutil.h> + + #include <fcntl.h> + +@@ -661,6 +664,7 @@ seed_os_fdatasync (SeedContext ctx, + const SeedValue arguments[], + SeedException * exception) + { ++#if !defined(__FreeBSD__) + gint fd; + + if (argument_count != 1) +@@ -670,6 +674,10 @@ seed_os_fdatasync (SeedContext ctx, + fd = seed_value_to_int (ctx, arguments[0], exception); + + return seed_value_from_int (ctx, fdatasync (fd), exception); ++#else ++ errno = ENOSYS; ++ return seed_value_from_int (ctx, -1, exception); ++#endif + } + + SeedValue +@@ -1070,7 +1078,9 @@ seed_module_init(SeedEngine * eng) + #if defined (O_DIRECT) + OS_DEFINE_QUICK_ENUM (O_DIRECT); + #endif ++#if defined (O_DIRECTORY) + OS_DEFINE_QUICK_ENUM (O_DIRECTORY); ++#endif + OS_DEFINE_QUICK_ENUM (O_NOFOLLOW); + #if defined (O_NOATIME) + OS_DEFINE_QUICK_ENUM (O_NOATIME); |