mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-11 13:30:02 -04:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
$NetBSD: patch-ai,v 1.1.1.1 2009/01/21 14:15:15 jmcneill Exp $
|
|
|
|
--- gtk/src/main.c.orig 2009-01-20 21:29:05.000000000 -0500
|
|
+++ gtk/src/main.c 2009-01-20 21:39:06.000000000 -0500
|
|
@@ -429,8 +429,13 @@ IoRedirect(signal_user_data_t *ud)
|
|
g_free(config);
|
|
// Set encoding to raw.
|
|
g_io_channel_set_encoding (ud->activity_log, NULL, NULL);
|
|
+#ifdef __NetBSD__
|
|
+ stderr->_file = pfd[1];
|
|
+ stdin->_file = pfd[0];
|
|
+#else
|
|
stderr->_fileno = pfd[1];
|
|
stdin->_fileno = pfd[0];
|
|
+#endif
|
|
channel = g_io_channel_unix_new (pfd[0]);
|
|
// I was getting an this error:
|
|
// "Invalid byte sequence in conversion input"
|
|
@@ -457,7 +462,6 @@ static GOptionEntry entries[] =
|
|
{ NULL }
|
|
};
|
|
|
|
-#if defined(__linux__)
|
|
void drive_changed_cb(GVolumeMonitor *gvm, GDrive *gd, signal_user_data_t *ud);
|
|
//void drive_disconnected_cb(GnomeVFSVolumeMonitor *gvm, GnomeVFSDrive *gd, signal_user_data_t *ud);
|
|
|
|
@@ -470,12 +474,6 @@ watch_volumes(signal_user_data_t *ud)
|
|
g_signal_connect(gvm, "drive-changed", (GCallback)drive_changed_cb, ud);
|
|
//g_signal_connect(gvm, "drive-connected", (GCallback)drive_connected_cb, ud);
|
|
}
|
|
-#else
|
|
-void
|
|
-watch_volumes(signal_user_data_t *ud)
|
|
-{
|
|
-}
|
|
-#endif
|
|
|
|
// Hack to avoid a segfault in libavcodec
|
|
extern int mm_flags;
|
|
@@ -511,9 +509,7 @@ main (int argc, char *argv[])
|
|
ghb_resource_init();
|
|
ghb_load_icons();
|
|
|
|
-#if defined(__linux__)
|
|
ghb_hal_init();
|
|
-#endif
|
|
|
|
ud = g_malloc0(sizeof(signal_user_data_t));
|
|
ud->debug = ghb_debug;
|