fix implicit declaration

This commit is contained in:
jasper 2011-05-27 13:12:34 +00:00
parent 9b56a7ce96
commit 848f1300a9
2 changed files with 12 additions and 10 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.4 2011/05/15 14:35:58 jasper Exp $
# $OpenBSD: Makefile,v 1.5 2011/05/27 13:12:34 jasper Exp $
COMMENT= GObject JavaScriptCore bridge
GNOME_PROJECT= seed
GNOME_VERSION= 3.0.0
REVISION= 2
REVISION= 3
SHARED_LIBS += seed-gtk3 0.0 # 0.0
CATEGORIES= devel www

View File

@ -1,11 +1,11 @@
$OpenBSD: patch-modules_os_seed-os_c,v 1.3 2011/05/22 13:55:27 jasper Exp $
$OpenBSD: patch-modules_os_seed-os_c,v 1.4 2011/05/27 13:12:34 jasper Exp $
fix #650234 Add FreeBSD/OpenBSD support to os/seed-os.c
from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
--- modules/os/seed-os.c.orig Tue Feb 22 23:44:01 2011
+++ modules/os/seed-os.c Tue May 17 08:44:33 2011
@@ -29,8 +29,17 @@
+++ modules/os/seed-os.c Fri May 27 15:10:56 2011
@@ -29,8 +29,19 @@
#include <sys/stat.h>
#include <sys/utsname.h>
@ -18,12 +18,14 @@ from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
+#include <termios.h>
+#if defined(__FreeBSD__)
+#include <libutil.h>
+#elif defined(__OpenBSD__)
+#include <util.h>
+#endif
+#include <unistd.h>
#include <fcntl.h>
@@ -54,18 +63,32 @@ seed_os_realpath (SeedContext ctx,
@@ -54,18 +65,32 @@ seed_os_realpath (SeedContext ctx,
const SeedValue arguments[],
SeedException * exception)
{
@ -58,7 +60,7 @@ from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
}
SeedValue
@@ -559,7 +582,12 @@ seed_os_unsetenv (SeedContext ctx,
@@ -559,7 +584,12 @@ seed_os_unsetenv (SeedContext ctx,
}
arg = seed_value_to_string (ctx, arguments[0], exception);
@ -71,7 +73,7 @@ from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
g_free (arg);
return seed_value_from_int (ctx, ret, exception);
@@ -702,6 +730,7 @@ seed_os_fdatasync (SeedContext ctx,
@@ -702,6 +732,7 @@ seed_os_fdatasync (SeedContext ctx,
const SeedValue arguments[],
SeedException * exception)
{
@ -79,7 +81,7 @@ from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
gint fd;
if (argument_count != 1)
@@ -711,6 +740,10 @@ seed_os_fdatasync (SeedContext ctx,
@@ -711,6 +742,10 @@ seed_os_fdatasync (SeedContext ctx,
fd = seed_value_to_int (ctx, arguments[0], exception);
return seed_value_from_int (ctx, fdatasync (fd), exception);
@ -90,7 +92,7 @@ from upstream git: 03c808137331be912e9adde997dd2830cf2e5593
}
SeedValue
@@ -1113,7 +1146,9 @@ seed_module_init(SeedEngine * eng)
@@ -1113,7 +1148,9 @@ seed_module_init(SeedEngine * eng)
#if defined (O_DIRECT)
OS_DEFINE_QUICK_ENUM (O_DIRECT);
#endif